Relative to Grid:
Before clicking the column (0) to sort values, Cell(2) in Item(0) has a value = 12
After sorting on column (0) Cell(2) still have the same value 12 which is not the right one
If Its Not clear, let's suppose a simple grid like this:
:--------------+-----------------+---------------:
:Category + Name + Age :
:--------------+-----------------+---------------:
: C James Value 12 :
:--------------+-----------------+---------------:
: A + Tom + Value 35 :
:--------------+-----------------+---------------:
: D + Catty + Value 22 :
:--------------+-----------------+---------------:
Column "Age" is a Link ButtonIf I sort "Category" and I first Get first row A - Tom The value in Column 3 remains 12 instead of 35
I read the value in this way:
Code: Visual Basic.NET
Dim item = Grid1.Items(Grid1.SelectedItemIndex)
Dim id = item.Cells(2).Value