开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜