Hi all,
I have a gridview that normally loads when a user clicks a View Report button. However, I now want to show the gridview while the page loads.
I tried calling the following method from the Page_Load event:
protected void btnView_Click(object sender, EventArgs e)
{
try
{
grvReport.DataBind();
}
catch (Exception ex)
{
Master.ShowMessage(ex.Message);
}
}
but it didn't work. Also tried calling grvReport.DataBind()
from Page_Load to no avail.
Any suggestions?