DataView Row Filter isn't working

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I need to filter this datatable but when I do it gives me all the data
not filter not sure what Im doing wrong.


DataView dv = new DataView();
dv.RowFilter = "ClientID = " + clientid;
gridControl1.DataSource = dv;

I also tried adding this but it didn't work either:
dv.RowStateFilter = DataViewRowState.ModifiedCurrent;

when I added the Row State Filter after the Row Filter no records was
return.
Any help will be greatly appreciated.
Thanks
Kim

.



Relevant Pages

  • Re: Typed DataSet Navigation (Multiple Tables)
    ... It's not a filter on the key. ... EmployeeId is only part of Orders not ... getting child rows, because that means I have to hit EVERY parent ... SINGLE DataView from the child in which contains ALL relating DataRows ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Typed DataSet Navigation (Multiple Tables)
    ... SINGLE DataView from the child in which contains ALL relating DataRows ... If you use a filter with the same keys as the relation, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: How to append parameter to Url that has parameters?
    ... Changing the filter to be Company Equal [Input Parameter] is not enough. ... > The parameter I am trying to add to the hyperlink in the ... > dataview isn't an input parameter to that data view. ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: Connecting webparts with a greater than less than filter
    ... I did not understand how the connection was working, but now I have a better ... In the DataView, I go to the Web Part Properties, and in the ... and have Issues filter for issues that exist in that build (i.e. ... > I can get it to work as a url parameter by adding the following to Location ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: DataView issues
    ... First one, is when we are applying filter, it sometimes applys on the our existed filter w/out clearing it, and of course our datagrid is empty. ... k> The dataview can hold as many as 40000 records that are retrieved ... If there was some kind of an exception thrown I would ...
    (microsoft.public.dotnet.languages.csharp)