Hi All,
I have a grid which displays thousands of rows.I want to select all rows on a button click.I used the following approach. But it takes lot of time .
{
}
Can anybody suggest me an alternative which is faster?.
Thanks
Abja
Hi Abja,
The fastest way to select all rows is to add the entire row collection to the ultragrid's selected.Rows collection:
ultragrid1.Selected.Rows.AddRange(ultragrid1.Rows.All)
Regrads,
Rico
Hi,
Thanks for your reply.It was really helpful.I required to cast objects to objects of Rows array .
grdEmpMessage.Selected.Rows.AddRange((UltraGridRow[) grdEmpMessage.Rows.All);
Thanks,