This is a migrated thread and some comments may be shown as answers.

[Solved] Maintain Alt-Row Color with Rows set to visible = false

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 04 Aug 2009, 11:55 PM
Hello,

I'm trying to find a way to force my radGrid to display alternating row colors properly after setting some rows visiblity to false.

After setting a row visible to false the rows outside the invisble row connect and displays the same color on neighbor rows.

Thanks so much for your help,

Evan

1 Answer, 1 is accepted

Sort by
0
Evan
Top achievements
Rank 1
answered on 05 Aug 2009, 06:17 PM
I've started designing  a work-around for this.

I'm binding to a DataTable in ViewState and for doing sorts I just turn certain rows visibility on or off depending on the sort criteria. This way all of the data is untouched in memory, DataTable, and after all editing/move/delete the DataTable is then commited to the Database.

Now, to get alternating row colors to show properly the only solution I've determined is to create another DataTable in ViewState for the "Sort" and after changing the sort criteria the changes from the "Sort DataTable" will be commited to the "Main DataTable".

Does this sound like the right approach to have my RadGrid display alternating row colors properly?

Thanks,

Evan
Tags
Grid
Asked by
Evan
Top achievements
Rank 1
Answers by
Evan
Top achievements
Rank 1
Share this question
or