Pb. DataGrid.Items while enabeling the Paging
I'm using a Datagrid with 开发者_开发百科paginig, while clicking on select all , all items in all pages are selected but while the execution, I'ven't all the selected items.
How can you get the DataGrid.Items.Count to reflect the FULL record count instead of displaying the page size?I'm using this property and all it's displaying is the page size of 10.
You could just do DataGrid.DataSource.Count
.
The answer was:
((DataSet)DataGrid.DataSource).Tables[0].Rows.Count
精彩评论