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

Getting cell value when visible is false

2 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James B.
Top achievements
Rank 1
James B. asked on 10 Jul 2013, 05:23 PM
Updated Web.UI recently to ver 2012.2.815.40 and now when we try to get a value from a GridBoundColumn that's not visible the .Text of the GridDataItem is a non breaking space instead of the numeric value. Turn visible on and it's a number like we expect.

How should we get the value in this case?

var groupMemberIDStr = item["GroupMemberID"].Text;

2 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 2
answered on 10 Jul 2013, 06:11 PM
visble = false does not render so you won't get a value.

try setting display = false
0
James B.
Top achievements
Rank 1
answered on 10 Jul 2013, 06:24 PM
Awesome, thanks!
Tags
Grid
Asked by
James B.
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 2
James B.
Top achievements
Rank 1
Share this question
or