S
Stuart Shay
Hello All:
I want to Filter a DataView then output to XML, the problem is when I place a Row Filter on the DataView the changes are not applied on the XML output.
Thanks
Stuart
DataView oDataView = new DataView(oDataSet.Tables[0]);
oDataView.RowFilter = string.Format("EmployeeID = '{0}'", "2");
// Count is Filtering Correctly
Response.Write("Count" + oDataView.Count + "<br/>");
// Not Filtering
string xmlString = oDataView.Table.DataSet.GetXml();
I want to Filter a DataView then output to XML, the problem is when I place a Row Filter on the DataView the changes are not applied on the XML output.
Thanks
Stuart
DataView oDataView = new DataView(oDataSet.Tables[0]);
oDataView.RowFilter = string.Format("EmployeeID = '{0}'", "2");
// Count is Filtering Correctly
Response.Write("Count" + oDataView.Count + "<br/>");
// Not Filtering
string xmlString = oDataView.Table.DataSet.GetXml();