R
RelaxoRy
sqlConnection1.Open();
myReader = sqlCommand1.ExecuteReader();
DataGrid1.DataSource = myReader;
DataGrid1.DataBind();
myReader.Close();
sqlConnection1.Close();
The Datagrid populates fine. I'm styling it on the HTML page. I
configure the DataGrid for paging through the property builder fine.
I AllowCustomePaging=true;. The page loads fine but it only shows "1"
on the page row and I have allowed for 10. Can paging be used on a
read only/forward control? Is this because it populates the control
once with data and there is no cache? Do I have to create a DataSet,
populate it with myCommand, and then bind the DataGrid to that DataSet
in order to allow for caching?
Any info appreciated.
Ryan
myReader = sqlCommand1.ExecuteReader();
DataGrid1.DataSource = myReader;
DataGrid1.DataBind();
myReader.Close();
sqlConnection1.Close();
The Datagrid populates fine. I'm styling it on the HTML page. I
configure the DataGrid for paging through the property builder fine.
I AllowCustomePaging=true;. The page loads fine but it only shows "1"
on the page row and I have allowed for 10. Can paging be used on a
read only/forward control? Is this because it populates the control
once with data and there is no cache? Do I have to create a DataSet,
populate it with myCommand, and then bind the DataGrid to that DataSet
in order to allow for caching?
Any info appreciated.
Ryan