Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Rows in different colors

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Rows in different colors
Link Posted: 16-Aug-2005 23:10
Hello,

is it possible to give some rows (no alternating, e.g. each 10th) a different color? When i walk through each row with the following code i get a exception:

[c#]
foreach(Rows myRow in flygrid.Rows.Items)
  {
    //do something
  }

And another question, ist a "rowspan" possible?

Thanks!
Link Posted: 17-Aug-2005 00:43
[quote="Formisano"]Hello,

is it possible to give some rows (no alternating, e.g. each 10th) a different color? When i walk through each row with the following code i get a exception:

[c#]
foreach(Rows myRow in flygrid.Rows.Items)
  {
    //do something
  }


Correct code:

[c#]
foreach(NodeBase node in flygrid.Rows.Items)
{
    //do something
}


See the Virtual Grid sample of FlyGrid.Net Demo to see how to implement different color rows.

[quote="Formisano"]
And another question, ist a "rowspan" possible?


No. But in the next versions of FlyGrid we're planning to implement the same functionality (nested columns).