im trying to get data from specific cells, or an entire row, and pass the data onto a child form, to display, and possibly edit it in a text box? any help?? please email me if u need more info
theneonirvana@gmail.comHow do i retrieve Cell data from a GridView in C# VS 2005?? any help?
If you know the row index, then you can do the following:
CheckBox checkbox = gridView1.Rows[index].Cells[0].Controls[鈥?as CheckBox;
bool checked = checkbox.Checked;
string Name = gridView1.Rows[index].Cells[1].Text;
i.e. There is a checkbox control in the 1st column and some text in the second column.
No comments:
Post a Comment