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

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -