L
LamSoft
If there is a table(2x2) generated from the gridview as below
checkbox-1 mytest-1 mytest-2
checkbox-1 mytest-3 mytest-3
I know how to check that two checkbox are checked or not, but how to get the
value of other column at the same row while in the for-loop statement.
for (int i = 0; i < gridSearchResult.Rows.Count; i++)
{
CheckBox cb =
(CheckBox)gridSearchResult.Rows.FindControl("checkBox_-1");
if (cb.Checked)
{
// get the value of the row in second column
// how to get it?
}
}
Thanks
checkbox-1 mytest-1 mytest-2
checkbox-1 mytest-3 mytest-3
I know how to check that two checkbox are checked or not, but how to get the
value of other column at the same row while in the for-loop statement.
for (int i = 0; i < gridSearchResult.Rows.Count; i++)
{
CheckBox cb =
(CheckBox)gridSearchResult.Rows.FindControl("checkBox_-1");
if (cb.Checked)
{
// get the value of the row in second column
// how to get it?
}
}
Thanks