How can I reach DataKey cells of GridView on the client-side?
I need to reach DataKey columns of a GridView on the client side by a JavaScript function.
As they they are at least visually disabled on the UI I wonder if I开发者_JAVA百科 can still reach them on client?
Is it possible?
DataKeys are not published to the client. You have to write out the values some way, either use a hidden field in a template column (but don't set the column to visible="false") or some other means to get this to work.
I'm sure there are other ways too...
HTH.
精彩评论