Subject: Capturing the content of a DataGrid Cell???
Posted By: thomaz Post Date: 11/12/2004 12:04:08 PM
Hi;

How can i store the content of one DataGrid cell in a String Variable?

Thanks....
Reply By: jdang67 Reply Date: 11/12/2004 9:21:01 PM

On edit event, you can get the value of each cell of the row you just click on. You can put all of them in 1 string if you like.

John

protected void ItemsGrid_Edit(object sender,
DataGridCommandEventArgs e)
        {
            strCustomerID.Text = e.Item.Cells[1].Text ;
            strLastName.Text = e.Item.Cells[2].Text ;
            strFirstName.Text = e.Item.Cells[3].Text
        }
}


Go to topic 22033

Return to index page 717
Return to index page 716
Return to index page 715
Return to index page 714
Return to index page 713
Return to index page 712
Return to index page 711
Return to index page 710
Return to index page 709
Return to index page 708