Hi Victor,
How is your complete page code looks like? According to ASP.NET Page Life
Cycle (
http://msdn2.microsoft.com/en-us/library/ms178472.aspx), there's
only Control events between the Page's Load and LoadComplete event. Also,
I've tested using a simple webpage and following code works:
protected void Page_Load(object sender, EventArgs e)
{
this.LoadComplete += new EventHandler(_Default_LoadComplete);
}
void _Default_LoadComplete(object sender, EventArgs e)
{
BindGrid();
}
private void BindGrid()
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Rows.Add("Test");
GridView1.DataSource = dt;
GridView1.DataBind();
}
Please post your code. Thanks.
Regards,
Walter Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.