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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Every Other Row in a DataGrid Gray

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
0
0
US
Is there a way to set every other row in a datagrid the color gray??

Thanks
 
Using the standard ado-bound datagrid, no. By using other grids like TrueDBGrid, yes. But if alternating colours is all you want I'd abandon the idea becuase the third party grids are quite expensive.
The datagrid that comes with .NET allows for alternating row colours, but I have not yet had the opportunity to test this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top