G
gerry
I have seen many posts regarding a the grid SortCommand even not firing but
haven't been able to determine what the problem is.
The grid is contained in a UserControl which is added to the page at runtime
The Control's InitializeComponent method contains : this.DGrid.SortCommand
+=new
System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.DGRid_SortCom
mand);
Everything was working fine and the SortCommand event was firing but
somewhere along the line it has stopped.
In the Page_Init & Page_Load methods of the UserControl
Request["__EVENTTARGET"] has the value
SectionCtl:SectionCtlGrid:_ctl1:_ctlN , this does not look right to me, I
was expecting to see a value of SectionCtl:SectionCtlGrid:_ctlN I don't
know what the initial _ctl1 is referring to.
Is there anyway to determine what the proper target id should be ?
Is there a way to trace through the event processing logic to determine why
the event handler is not being invoked ?
EnableViewState & AutoGenerateColumns values are having no effect.
any insight here would be greatly appreciated
gerry
haven't been able to determine what the problem is.
The grid is contained in a UserControl which is added to the page at runtime
The Control's InitializeComponent method contains : this.DGrid.SortCommand
+=new
System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.DGRid_SortCom
mand);
Everything was working fine and the SortCommand event was firing but
somewhere along the line it has stopped.
In the Page_Init & Page_Load methods of the UserControl
Request["__EVENTTARGET"] has the value
SectionCtl:SectionCtlGrid:_ctl1:_ctlN , this does not look right to me, I
was expecting to see a value of SectionCtl:SectionCtlGrid:_ctlN I don't
know what the initial _ctl1 is referring to.
Is there anyway to determine what the proper target id should be ?
Is there a way to trace through the event processing logic to determine why
the event handler is not being invoked ?
EnableViewState & AutoGenerateColumns values are having no effect.
any insight here would be greatly appreciated
gerry