Gridview Paging
-
Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u
-
Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u
you need to bind to a datatable, not a datareader
-
Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u
Use Datatable or Dataset instead of Datareader.
SSK.