B
Brian Nantz
I ran into this toady and I can't figure it out. Here is the code:
System.Guid guid = this.dsLoop.Device[this.cbDomainPanels.SelectedIndex].ID;
//This doesn't filetr correctly
// DataView dv = new DataView(this.dsPanel.Device, "[Parent]='" +
guid.ToString() + "'", "", DataViewRowState.CurrentRows);
//This filters just fine???
DataRow [] rowsDevice = (DSDevice.DeviceRow[])dsPanel.Device.Select(
"[Parent]='" + guid.ToString() + "'", "" );
this.gridPanel.DataSource = rowsDevice;
Why the difference? Shouldn't this be the same thing? I would rather
filter with the dataview but I can't get it to work. Shouldn't all
filtering of datasets be a single code path in ADO.NET?
Thanks in advance,
Brian Nantz
System.Guid guid = this.dsLoop.Device[this.cbDomainPanels.SelectedIndex].ID;
//This doesn't filetr correctly
// DataView dv = new DataView(this.dsPanel.Device, "[Parent]='" +
guid.ToString() + "'", "", DataViewRowState.CurrentRows);
//This filters just fine???
DataRow [] rowsDevice = (DSDevice.DeviceRow[])dsPanel.Device.Select(
"[Parent]='" + guid.ToString() + "'", "" );
this.gridPanel.DataSource = rowsDevice;
Why the difference? Shouldn't this be the same thing? I would rather
filter with the dataview but I can't get it to work. Shouldn't all
filtering of datasets be a single code path in ADO.NET?
Thanks in advance,
Brian Nantz