|
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 } }
|