Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

TableCell CellcontactName = selectedRow.Cells[4]; // not working to get the cell value

$
0
0
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
    if (e.CommandName == "Select")
    {
        int index = Convert.ToInt32(e.CommandArgument);
        GridViewRow selectedRow = GridView1.Rows[index];


        //ANOTHER approach via TableCell ... thiis not working to do
        TableCell CellcontactName = selectedRow.Cells[4];
        string contact = CellcontactName.Text;
        lblMsg.Text =
     }
}


Hi ,
I am following this link guidance. For unknown reasons, I am not getting the value from thecell.
appreciate your help..

This is the link. It should work..

Bob
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.
buttonfieldbase.buttontype(v=vs.90).aspx

 

Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>