asp.net - Get GridViewRow by DataKeyValue -


can gridviewrow given gridview datakey value?

i know can loop through rows , row, need know if there shortcut way find row.

for example, can find row if have rowindex. there similar way find row given gridview datakey value.

any regarding highly appreciated. in advance.

you can this

string str = gvlisting.datakeys[rowindex].values["yourdatakeyname"].tostring(); 

Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -