I want to create A GRIDVIEW that will Check/Uncheck Checkboxes using linkbutton header template inside gridview..Is it posible..
Thanks here's my code
CODE BEHIND:
protected void lnkInitiator_Click(object sender, EventArgs e)
{
bool chkboxIsChecked = false;
for (int i = 0; i < gridRevAppMatrix.Rows.Count; i++)
{
foreach (GridViewRow row in gridRevAppMatrix.Rows)
{
string AppID = (gridRevAppMatrix.DataKeys[row.RowIndex].Values["MatrixCondition_Idx"].ToString());
chkboxIsChecked = false;
CheckBox selected = (CheckBox)gridRevAppMatrix.Rows[i].FindControl("chkInitiator");
if ((selected.Checked == true) && (selected != null))
{
chkboxIsChecked = false;
RoleSavingReg(getRole("chkInitiator"), AppID, chkboxIsChecked);
}
else
{
chkboxIsChecked = true;
RoleSavingReg(getRole("chkInitiator"), AppID, chkboxIsChecked);
}
}
}
}
CLIENT SIDE:
I really appreciate your big help on this thanks

Satyapriya NayakPosted Dec 3, 2012, 11:15 PM