H
hazz
OnClick="btnDelete_Click" , once clicked, fires only after the RowCreated
event listed here. No Checkbox is found and the program aborts. How can I
intercept this event? I want the RowCreated event to fire on form load, but
not first thing after the delete button is clicked. I hope my question is
clear. Thank you. -Greg
GridView_RowCreated(object sender, GridViewRowEventArgs e) {
CheckBox check = (CheckBox)e.Row.FindControl("chkSelect");
if ((check != null) ) {
check.Checked =
Convert.ToBoolean(((SSI.ColumnsForReport)(e.Row.DataItem)).Include_in_Report);
}
void btnDelete_Click(object sender, EventArgs e)
{
After OnClick event is fired I WANT THIS CODE TO BE EXECUTED INSTEAD OF
GridView_RowCreated.
event listed here. No Checkbox is found and the program aborts. How can I
intercept this event? I want the RowCreated event to fire on form load, but
not first thing after the delete button is clicked. I hope my question is
clear. Thank you. -Greg
GridView_RowCreated(object sender, GridViewRowEventArgs e) {
CheckBox check = (CheckBox)e.Row.FindControl("chkSelect");
if ((check != null) ) {
check.Checked =
Convert.ToBoolean(((SSI.ColumnsForReport)(e.Row.DataItem)).Include_in_Report);
}
void btnDelete_Click(object sender, EventArgs e)
{
After OnClick event is fired I WANT THIS CODE TO BE EXECUTED INSTEAD OF
GridView_RowCreated.