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

Get hidden columns value

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 04 Jun 2013, 03:31 PM
I have a radgrid that I set the datasource to a datatable set from a dataset and bind it.  I manually setup (edit columns) the headers and have hidden some of the columns because I don't want them visible (ID field).  But when I click on the row (For Each item As GridDataItem In dgComp.SelectedItems)

I get the value of the comlumn (item("ID").Text)

But since I manually setup the Grid columns I set this columns visible property to False.  And now all I get in &nbsp as the result instead of the value.  If I set the columns visible property to True then I can get the true value.  I need the data in the grid but I dont want it to be visible how can I do this?  I see no datakeyfield property under edit columns just a DataField??

Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 2
answered on 04 Jun 2013, 03:37 PM
Nevermind, I see were I should use Display instead of Visible to hide the columns.
Tags
Grid
Asked by
Stefan
Top achievements
Rank 2
Answers by
Stefan
Top achievements
Rank 2
Share this question
or