I am using a radgrid which has edit form for each row. When I click on the EDIT, needdatasource event is triggered and databinding, which I dont want it to do because the query for the grid takes a fews seconds to run. I set on the needdatasource event so that the code doesn't run if the EDIT link is clicked on. But this makes the radgrid disappear. I have tried making the grid visible again and enable but doesnt show the grid. Code snippet below.
protected void rg_OrderSummary_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
if (refreshGrid)
{
(sender as RadGrid).DataSource = LoadResults();
}
else
{
rg_OrderSummary.Visible= true;
updGrid.Update();
}
}
}
How can I get it the grid to show without having to run databind again through need datasource event please?