Hiding value into grid view
-
Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge
-
Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge
instead of storing it in any column and hiding it you can use datakeys..... sample code: //in RowEditing event int row = e.NewEditIndex; string id = GridView1.DataKeys[row][0].ToString();
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Hello can we hide any column into grid view where we can store any id of particular item which can be use for further operation plz any one guide me if any body has its samples solution plz give ge
If I understand your question correctly, wouldn't setting the columns Visible property to false provide you with the solution you seek (
Visible="false"
). This is a very common technique.Regards, Gary