Hi All,
I want to switch fro gridview to RadGrid ,I have two bound field and a checkbox in a templatecolumn , I want to check all the grid rows for checked box and get the bound value for the checked one ,how can I do that with RadGrid?????
the button codebehind for the old gridview:
I want to switch fro gridview to RadGrid ,I have two bound field and a checkbox in a templatecolumn , I want to check all the grid rows for checked box and get the bound value for the checked one ,how can I do that with RadGrid?????
the button codebehind for the old gridview:
int
iCheckCount=0;
for (int iRows = 0; iRows < grdUserRequestHistory.Rows.Count; iRows++)
{
GridViewRow row = grdUserRequestHistory.Rows[iRows];
bool isChecked = ((CheckBox)row.FindControl("chkUsers")).Checked;
if (isChecked)
{
iCheckCount = 1;
string strHospCd = string.Empty;
switch (row.Cells[0].Text)
{
case "NMC":
strHospCd =
"'00'";
break;
case "RCH":
strHospCd =
"'01'";
break;
case "RNH":
strHospCd =
"'02'"
break;
}
// I will insert data here
}
}
thanks in advance
ghadeer