Setting the Datagrid Row Backcolor for Selected rows
-
Hi All, I have a requirement for shading the backcolor of certain rows of the Datagrid. Lets assume my table has 4 rows in it. I want to display the alternate rows in different colours and if two consecutive rows is grouped for some reason they need to show the same color. (Can't Use Datagrid's Alternatebackcolor and backcolor). Case 1 Row 1 & 3 backcolor as Pale green Row 2 & 4 backcolor as Dark green ( Easy with the above said properties) Case 2 Row 1 backcolor as Pale green Rows 2 & 3 backcolor as Dark green Row 4 backcolor as Pale green Tried loads of samples but can't achieve these 2 cases with any of them. can someone help ? Thanks
-
Hi All, I have a requirement for shading the backcolor of certain rows of the Datagrid. Lets assume my table has 4 rows in it. I want to display the alternate rows in different colours and if two consecutive rows is grouped for some reason they need to show the same color. (Can't Use Datagrid's Alternatebackcolor and backcolor). Case 1 Row 1 & 3 backcolor as Pale green Row 2 & 4 backcolor as Dark green ( Easy with the above said properties) Case 2 Row 1 backcolor as Pale green Rows 2 & 3 backcolor as Dark green Row 4 backcolor as Pale green Tried loads of samples but can't achieve these 2 cases with any of them. can someone help ? Thanks
-
Hi All, I have a requirement for shading the backcolor of certain rows of the Datagrid. Lets assume my table has 4 rows in it. I want to display the alternate rows in different colours and if two consecutive rows is grouped for some reason they need to show the same color. (Can't Use Datagrid's Alternatebackcolor and backcolor). Case 1 Row 1 & 3 backcolor as Pale green Row 2 & 4 backcolor as Dark green ( Easy with the above said properties) Case 2 Row 1 backcolor as Pale green Rows 2 & 3 backcolor as Dark green Row 4 backcolor as Pale green Tried loads of samples but can't achieve these 2 cases with any of them. can someone help ? Thanks
-
enumrate the cells in the whole row and color the cells as you go: http://www.syncfusion.com/faq/winforms/search/745.asp[^] hope this helps.
I Tried this sample yesterday and this doesn't solve my first case wherein i have to display alternate colors for each layer. Anyway thanks for your help.