Helllo ALL
how to change a row color and column color in datagrid
Please help me
Thanks in Adbvance
Windows Forms Data Controls and Databinding
Helllo ALL
how to change a row color and column color in datagrid
Please help me
Thanks in Adbvance
HiŁ¬It's not easy for you to achieve that with a DataGrid, it doesn't have a Row[x].BackColor property as the DataGridView(which is a .NET2.0 control)does. So you have to override the OnPaint event, do lots of work, for more information, read this:http://msdn2.microsoft.com/en-us/library/ms996485.aspx
And we usually use the cellformat event to change the backcolor of a row.
Please check this artilce
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=744612&SiteID=1
Hope it helps
With Regards