Wednesday, April 16, 2008

GridView Id column

If I make a "BoundColumn" for the Id, with visible - false, I can't get the Id ...

This one works:
(rowdatabound)




e.Row.Cells["mycolumn"].Style.Add("display", "none");




this way the Id is still there, you just cannot see it...

No comments: