for(int i = 0; i < dataGrid.Items.Count; i++)
{
string foo = dataGrid.Items.Cells[column].Text;
// for text in a cell
string foo =
((TextBox)dataGrid.Items.Cells[column].Controls[1]).Text; // for text
in a textbox in a cell
}
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.