Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
Hello All,

I am using the gridview in which one column is set visible=false.But while deleting a particular row how to take the value of that column which is invisible ???

Thanks in advance......
Posted

you may put that data in hidden field under templetefield

 
Share this answer
 
Hi sarang_k,

You don't need to set visible=false for that gridview column. Just use CSS for your issue.

Code is below,

instead of

e.Row.Cells[0].Visible = false;

use this

e.Row.Cells[0].Attributes.Add("style","display:none");


I'm using this code in my programs.

Regards,
thatraja
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900