[英]Get view DataSource of GridControl in DevExpress
I have gridControl with one gridView. 我有一个gridView的gridControl。 In this gridView I can use inline search or column filter.
在此gridView中,我可以使用内联搜索或列过滤器。 How can I get elements in gridView(viewable DataSource) after filter and search?
过滤和搜索后如何在gridView(viewable DataSource)中获取元素? This field return all elements in gridView without filters:
此字段返回没有过滤器的gridView中的所有元素:
myGridView.DataSource
You have to loop first for all active rows and than take the row cell value. 您必须首先为所有活动行循环,然后再获取行单元格值。
Here is an example code; 这是一个示例代码;
for(var i = 0; i < myGridView.DataRowCount; i++){
myGridView.GetRowCellValue(i, "columnName");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.