Last post Nov 14, 2005 06:37 PM by R2_D2
Nov 13, 2005 07:19 AM|smh_jazayeri|LINK
Hello my friends
when i create a datagrid and set its data source to an array list and set its allowpaging to true and the event of change page index is true, my paging don't work true but when i do this works in other page i don't have any problems
and when i do this works with datatable isn't any problem .
what's your idea???
what's my problem???[8o|]
Nov 14, 2005 11:24 AM|garnold|LINK
Check these three things:
1) On initial binding to the ArrayList, set the paging-related properties on the DataGrid - AllowPaging=true, PageSize, CurrentPageIndex, DataSource=your array list
2) In InitializeComponent(), setup event handler for DataGrid.PageIndexChanged - Make sure the "+= new DataGridPageChangedEventHandler..."
3) On PageIndexChanged, rebind to the DataSource and set the DataGrid.CurrentPageIndex to e.NewPageIndex.
Hope this helps!
Nov 14, 2005 06:37 PM|R2_D2|LINK