Saturday, 13 April 2013

Gridview datakey value on rowcommand


GridViewRow row = (GridViewRow)((Control)e.CommandSource).NamingContainer;
            string id =GridView1.DataKeys[row.RowIndex].Values[0].ToString();

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...