guvera
asked on
get visible false column value in data grid when submit button
Hi,
In gridview i give one column visible="false". In item template i have radiobutton. when i click radio button the row is selected. After clicking radio button i click submit button. When i click submit button i need to take value of grid invisible column that what i give visible is false.Is it possible? If it is possible, how we reach this problem? Any suggession. Highly appreciate if any help.
Thanks
Guvera
In gridview i give one column visible="false". In item template i have radiobutton. when i click radio button the row is selected. After clicking radio button i click submit button. When i click submit button i need to take value of grid invisible column that what i give visible is false.Is it possible? If it is possible, how we reach this problem? Any suggession. Highly appreciate if any help.
Thanks
Guvera
Are you asking how to get the value of an invisible column?
ASKER
Hi,
Thanks for your reply.
yes..i click radio button the entire row of the column is selected. I put one of the column is visible ="false". When i click submit button i need to get the column value(visible="false").
Regards
Guvera
Thanks for your reply.
yes..i click radio button the entire row of the column is selected. I put one of the column is visible ="false". When i click submit button i need to get the column value(visible="false").
Regards
Guvera
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi,
Thanks for your update. Currently I am using boundfield and I have set the visible property as false.
Gridview has a column with radio button. Once I selected the radio buttion, I will click the continue button, at that time I need the hidden column value.
Thanks for your update. Currently I am using boundfield and I have set the visible property as false.
Gridview has a column with radio button. Once I selected the radio buttion, I will click the continue button, at that time I need the hidden column value.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Using DataKey property is to get unique row id only right, ie can get primary key value.
I need to get any one of the column value(hidden) in the grid.
Thanks for your reply.
Regards
Guvera
Using DataKey property is to get unique row id only right, ie can get primary key value.
I need to get any one of the column value(hidden) in the grid.
Thanks for your reply.
Regards
Guvera
Then put that value in a hidden input and then at submit do
(HiddenField)yourGridView. SelectedRo w.FindCont rol("hdnFi eld")).Val ue
(HiddenField)yourGridView.