hi
I have a grid with paging enabled and viewstate is set to True and i have set a breakpoint at the NeedDdataSource. What happened is that whenever i click the page number on the grid it goes into breakpoint and it would ran through the code again.
There is some performance issues here if i have many rows of records.
Since i know the dataset has been filled with data, how do i code it so that there is no need to go through that code everytime i do a paging on the grid? thanks and sorry for the inconvenience caused.
Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
I have a grid with paging enabled and viewstate is set to True and i have set a breakpoint at the NeedDdataSource. What happened is that whenever i click the page number on the grid it goes into breakpoint and it would ran through the code again.
There is some performance issues here if i have many rows of records.
Since i know the dataset has been filled with data, how do i code it so that there is no need to go through that code everytime i do a paging on the grid? thanks and sorry for the inconvenience caused.
Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
Dim ds1 As New DataSet
ds1 = dsDemo("demo","demo")
RadGrid1.DataSource = ds1.Tables(0).DefaultView
End Sub