Anyone know why PageIndexChanged event is not firing on a Datagrid that is inside a user control?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Long Le (lelong37_at_msn.com)
Date: 09/16/04


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