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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -