Hi
I am implementing some printing in C# and I need to get the data for it. I
am using a datagrid. I can sort the data and filter it. I want to get a
datatable of only the data visible in the datagrid. The underlying dataview
holds all the records. If I have a dataview with 80 records in but the user
does a filter in the datagrid, I want to get only the 5 filtered records.
Can anyone help me with this one?
Tim
Pete Davis - 30 Sep 2005 23:10 GMT
If you're using the DataView for the filtering and sorting, why don't you
use the DataView to get the records for printing? It will have the
sorted/filtered data.
Just use DataView[rowIndex] to get the DataRowView for a row.
I assume you're using the DataView.RowFilter and DataView.Sort....
Pete
> Hi
>
[quoted text clipped - 8 lines]
>
> Tim