I got a button, when button clicked
protected void btnModify_Click(object sender, ImageClickEventArgs e)
{
RadGrid2.DataSource = GetDataTable(
"SELECT Users.Personelid, Users.name, Users.surname FROM Users WHERE");
RadGrid2.DataBind();
}
I do the above operation but Radgrid do not accept new datasource and change its columns acording to it. How can I assign a new datasource and bind it?All help will be appreciated. By the way I dont want to use need_datasource event, at first time gridview has to show nothing but after user make some operation and click the button it has to populate on demand and show the result of query