Groups | Blog | Home
all groups > asp.net datagrid control > september 2006 >

asp.net datagrid control : DataGridView



Max3vil
9/22/2006 12:00:00 AM
I have a DataGridView binded to an access datasource.
I Would like that every cell had -1 as value will use a different style
respect others cell.

Any ideas ?

tnx

Gaurav Vaish (www.EduJiniOnline.com)
9/24/2006 12:00:00 AM
[quoted text, click to view]

Override "OnItemCreated" method. Apply 'Style' on the fly from the code.
Cannot do it declaratively... since it's not the cell that has a value of
'-1' but probably a Label may have a property called Text with content as
'-1'.


--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------

AddThis Social Bookmark Button