Anyone know why PageIndexChanged event is not firing on a Datagrid that is inside a user control?
From: Long Le (lelong37_at_msn.com)
Date: 09/16/04
- Next message: Edward Mitchell: "Server Error in '/MyWebForm' Application"
- Previous message: sonny: "Re: Losing Session State on a State Server"
- Next in thread: Long Le: "Typo in original post: Anyone know why "EditCommand" event is not firing on a Datagrid that is inside a user control?"
- Reply: Long Le: "Typo in original post: Anyone know why "EditCommand" event is not firing on a Datagrid that is inside a user control?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 12:15:30 -0500
I checked to see if its wired correctly:
private void InitializeComponent()
{
this.DataGrid1.PageIndexChanged += new
System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_PageIndexChanged);
this.DataGrid1.EditCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCommand);
this.Load += new System.EventHandler(this.Page_Load);
}
private void DataGrid1_EditCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = e.Item.ItemIndex;
GetData();
}
private void DataGrid1_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
GetData();
}
and it looks fine... paging works fine also, just the edit command isn't
getting fired???
Any one have any suggestions? Thanks in advance...
Long Le
LeLong37@msn.com
- Next message: Edward Mitchell: "Server Error in '/MyWebForm' Application"
- Previous message: sonny: "Re: Losing Session State on a State Server"
- Next in thread: Long Le: "Typo in original post: Anyone know why "EditCommand" event is not firing on a Datagrid that is inside a user control?"
- Reply: Long Le: "Typo in original post: Anyone know why "EditCommand" event is not firing on a Datagrid that is inside a user control?"
- Messages sorted by: [ date ] [ thread ]