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

Restart index of rows after ordering them in radgridview

1 Answer 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cezar
Top achievements
Rank 1
Cezar asked on 28 Jul 2017, 08:47 PM

I need a way for restart the index of rows of radgridview after ordering them.

In my case i order the rows by a column, but when i go set the currentrow of grid the line that is selected no is the i want. This happens because when the lines are ordered the index of rows no is equal the your posicions.

Can somebody help me please?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 31 Jul 2017, 11:24 AM
Hi Cesar,

You can use the index from the ChildRows collection: Rows vs ChildRows.

I hope this information is useful.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Cezar
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or