Hi,
I am making a program with multiple grids, the user can drag&drop rows between Grids.
For visualizing this nice and easy I give each row in a grid an other color.
For the moment I store the color in a person object but, this is just temporally.
Note this provided code also changes the color again when you click again in a row (still has to change that :) )
Has anyone an idea how I can automate this withoud using the list of Person object where the color is stored.
Like a sort of list of colors, enum (int).
Greetz Jonathan
I am making a program with multiple grids, the user can drag&drop rows between Grids.
For visualizing this nice and easy I give each row in a grid an other color.
For the moment I store the color in a person object but, this is just temporally.
Code:
private void gridView2_RowStyle(object sender, RowStyleEventArgs e)
{
GridView view = sender as GridView;
if (e.RowHandle >= 0)
e.Appearance.BackColor = persons[e.RowHandle].color;
}
Has anyone an idea how I can automate this withoud using the list of Person object where the color is stored.
Like a sort of list of colors, enum (int).
Greetz Jonathan
Comment