Welcome Guest Search | Active Topics | Sign In | Register

Cell Value of SelectedItemIndex doens not change after sorting Options
AlexPro Software
Posted: Wednesday, May 29, 2013 7:10:43 AM
Rank: Newbie
Groups: Member

Joined: 5/24/2013
Posts: 3
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 Button
If 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
eo_support
Posted: Wednesday, May 29, 2013 10:13:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Please check whether you are running the latest version. We tested this on the latest build and it works fine.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.