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

Get column values that is not displayed in RadGrid

4 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RB
Top achievements
Rank 1
RB asked on 08 Jul 2014, 10:05 PM
I have a RadGrid which is bound to a stored Proc. There are columns in the stored proc that are not displayed in the grid, but I want to access their values.
For instance "IsNewProduct" is not displayed in the grid but I want to access its values when a row is selected.PLease let me know how to achieve this.

4 Answers, 1 is accepted

Sort by
0
Jesse
Top achievements
Rank 1
answered on 08 Jul 2014, 10:52 PM
How do you need to access it? You can access the datasource of the grid.
0
RB
Top achievements
Rank 1
answered on 08 Jul 2014, 11:12 PM
I need to access the value in ItemDataBound and append it with an image!
0
Jesse
Top achievements
Rank 1
answered on 08 Jul 2014, 11:18 PM
I think you need to clarify. ItemDataBound is an event. You could add grid columns for these extra columns, but just make them invisible, so they're in your grid. But I don't understand what you're trying to do to know if this is necessary.
0
Princy
Top achievements
Rank 2
answered on 09 Jul 2014, 07:12 AM
Hi,

A solution to obtain your requirement is to add the column to your Grid and set its Display as false, so it can be accessed in the code behind in the events you want which is easy. Elaborate on your requirement if this doesn't help.

Thanks,
Princy
Tags
Grid
Asked by
RB
Top achievements
Rank 1
Answers by
Jesse
Top achievements
Rank 1
RB
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or