Hi Guadalupe,
Thanks for using Syncfusion products.
Query: “And I want count rows, I need help with this.”
From your query, we understand that you need to get dataSource (rows from datatable) count. We suspect that you are using dataTable to bind it to Grid. To achieve your requirement we suggest you to store the Grid dataSource in variable and get the rows count from that variable. Refer the below code example
DataTable dt = (DataTable)(OrdersGrid.Model.DataSource); // OrdersGrid is the Grid ID
var dat = dt.Rows.Count; // get the count from datatable |
Please get back to us if you have further queries.
Regards,
Vignesh Natarajan.