G
Guest
Hi All
I have a dataset which has a table
This data table contains 100 rows
My requirement is I need to first filter these rows bases on some condition and then generate the XML of the dataset
How can I do that
I could filter the records using RowFilter method . But the GetXml method of the dataset always returns the original data (100 rows
I could filter the data in the table using the follg code
table = dataset.Tables[0]
table.DefaultView.RowStateFilter = DataViewRowState.OriginalRows
table.DefaultView.RowFilter = "ColumnA= 'AAA' "
After this how can I generate the new XML (with records matching the above criteria)
Any Ideas
Thanks & Regards
Ra
I have a dataset which has a table
This data table contains 100 rows
My requirement is I need to first filter these rows bases on some condition and then generate the XML of the dataset
How can I do that
I could filter the records using RowFilter method . But the GetXml method of the dataset always returns the original data (100 rows
I could filter the data in the table using the follg code
table = dataset.Tables[0]
table.DefaultView.RowStateFilter = DataViewRowState.OriginalRows
table.DefaultView.RowFilter = "ColumnA= 'AAA' "
After this how can I generate the new XML (with records matching the above criteria)
Any Ideas
Thanks & Regards
Ra