Actually I am using SelectedRow Object
GridViewRow row = gv1.SelectedRow;
But I can not get value from column #1 which I hide
Or I should use something else?
FYI I use gv1.DataSource = ds
ds is a dataset object, instead I bound it with SQL Data Source
TIA,
Gun
<of******@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
The value should still be there and available like the shown values.
Walk through it with the debugger and place breakpoint in the Load
event. Then add your GridView reference to the Watch. You can expand
it out to see exactly where you can find your value.
Placing an ID as a hidden column on a GridView is common practice and
it was done with the DataGrid in ASP.NET 1.1. It is the only real way
to know what data that row was bound to originally.
Brennan
Gunawan wrote:
>Dear All,
I have data which display on the GridView.
GridView contain 3 Column (ProductId, ProductCode and Description).
I would like to display only Product Code and Description so I hide
ProductId Column.
Is there any command so I can take value of first column which is Product
ID?
In other words, how can I get value from hidden column on Grid View?
TIA,
Gun