Datagrid row Color
-
Is there a way to change a row's color in a datagrid? I've got a datagrid where i would like to change every 3rd row's color. Is this possible???:doh:
-
Is there a way to change a row's color in a datagrid? I've got a datagrid where i would like to change every 3rd row's color. Is this possible???:doh:
I have a article about How to change a back color of one cell based on its value. http://www.codeproject.com/csharp/custom_datagridcolumnstyl.asp[^] There are sone other articles in this site which I think about changing the color of entire row, use the serach engine at top of this page. Mazy "Art is life, life is life, but to lead life artistically is the art of life." - Peter Altenberg
-
I have a article about How to change a back color of one cell based on its value. http://www.codeproject.com/csharp/custom_datagridcolumnstyl.asp[^] There are sone other articles in this site which I think about changing the color of entire row, use the serach engine at top of this page. Mazy "Art is life, life is life, but to lead life artistically is the art of life." - Peter Altenberg
Thnxs for your answer, I got it to change every 3rd row. But now there is a different problem, the instant i scroll down on the datagrid the colors get messed up or changes to one color. Do you know what this problem could be?
-
Thnxs for your answer, I got it to change every 3rd row. But now there is a different problem, the instant i scroll down on the datagrid the colors get messed up or changes to one color. Do you know what this problem could be?
Don't worry, i got the problem, it was pretty stupid. Thnxs for the help.