datagrid-paging
-
Hi everybody I have used a datagrid in my form. and every thing is Ok. I can see the items I want in datagrid but the problem is about paging. I have set the paging to 5 ..it means the datagrid should show 5 items in page 1 and the next 5 items in the next page( page 2 ) and ... but it doesnt work ... it shows the page but when I click on page 2 it already shows the items in page 1 ... I mean just page 1 works ...what should I do? whats wrong with properties or code? please tell me ... thank you very much. here is asection of my code : private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { FillDataGrid(); } } private void FillDataGrid() { cUpload upload=new cUpload(); bool Success; dsUpload1=upload.GetAllUpload(out Success); if(Success) { dgUpLoad.DataSource=dsUpload1.tblUpLoad; } dgUpLoad.DataBind(); }
-
Hi everybody I have used a datagrid in my form. and every thing is Ok. I can see the items I want in datagrid but the problem is about paging. I have set the paging to 5 ..it means the datagrid should show 5 items in page 1 and the next 5 items in the next page( page 2 ) and ... but it doesnt work ... it shows the page but when I click on page 2 it already shows the items in page 1 ... I mean just page 1 works ...what should I do? whats wrong with properties or code? please tell me ... thank you very much. here is asection of my code : private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { FillDataGrid(); } } private void FillDataGrid() { cUpload upload=new cUpload(); bool Success; dsUpload1=upload.GetAllUpload(out Success); if(Success) { dgUpLoad.DataSource=dsUpload1.tblUpLoad; } dgUpLoad.DataBind(); }