

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)
Timestamp: Tue, 31 Mar 2009 15:46:14 UTC
Message: Object doesn't support this property or method
Line: 43
Char: 1
Code: 0
Message: Sys.ArgumentException: does not derive from Sys.Component.
Parameter name: type
Line: 2707
Char: 9
Code: 0
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