Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Color in a Single Row of a Datagrid

Status
Not open for further replies.

Draug

Programmer
Apr 18, 2001
77
CA
Greetings,

I have a datagrid that is linked to a Datasource. When a record contains null in one of its fields, I want to highlight the whole row for that record in Red.

Does anyone have an example to do such a thing?

Thanks,
Draug
 
You'll probably need to create custom gridcolumnstyles that change the backcolor of the cell based on the value being null.

There are some good examples on the Windows Forms FAQ page at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top