hi
I have this casting of dataset issues and i just could not get it working. please help and any inconvience caused regretted. Thanks
I have this casting of dataset issues and i just could not get it working. please help and any inconvience caused regretted. Thanks
Unable to cast object of type 'System.Data.DataTable' to type 'System.Data.DataSet'.
Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = "select" Then
Session("sessiondataset") = CType(Session("sessiondataset"), DataSet).Tables("CTETable").Select("Customer ='" + DirectCast(e.CommandSource, LinkButton).Text + "'")
RadGrid1.Rebind()
end if
End Sub
Protected Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
RadGrid1.DataSource = Session("sessiondataset")
End Sub