Correct me if I'm wrong, but once I have my data returned from a stored
procedure, in a dataset and displayed in a DataGrid (ASP.Net)...I can filter
the data correct, without making a return trip to the server?

Anyone have an example of how this works?

Thanks

Re: Filter Dataset by Cor

Cor
Fri Apr 01 10:57:56 CST 2005

Steve,

Use a table("x").defaultview.rowfilter = "mycolumn = 'Steve'" for that

I hope this helps,

Cor



Re: Filter Dataset by Steve

Steve
Fri Apr 01 11:03:01 CST 2005

Thank you, I'll give that a shot. I'm assuming I can do 'like' expressions
also, not just 'equals'.

"Cor Ligthert" <notmyfirstname@planet.nl> wrote in message
news:uT3w%23vtNFHA.2356@TK2MSFTNGP14.phx.gbl...
> Steve,
>
> Use a table("x").defaultview.rowfilter = "mycolumn = 'Steve'" for that
>
> I hope this helps,
>
> Cor
>
>



Filter Dataset by Elton

Elton
Fri Apr 01 11:07:18 CST 2005

You are right.

Suppose you get data using sp(Select * from Employee ...)
to fill a dataset. Then you use following code

DataView dv = ds.Tables[0].DefaultView;
dv.RowFilter = "Department = 'HR'";
datagrid.DataSource = dv; // only data in HR
datagrid.DataBind();

HTH

Elton Wang
elton_wang@hotmail.com



>-----Original Message-----
>Correct me if I'm wrong, but once I have my data returned
from a stored
>procedure, in a dataset and displayed in a DataGrid
(ASP.Net)...I can filter
>the data correct, without making a return trip to the
server?
>
>Anyone have an example of how this works?
>
>Thanks
>
>
>.
>

Re: Filter Dataset by Stephany

Stephany
Sat Apr 02 03:52:31 CST 2005

The documentation for the DataColumn.Expression property provides details of
the syntax you can use for the DataView.RowFilter property.


"Steve Schroeder" <sschroeder@merchant-gould.com> wrote in message
news:OE%23jrztNFHA.3760@TK2MSFTNGP12.phx.gbl...
> Thank you, I'll give that a shot. I'm assuming I can do 'like' expressions
> also, not just 'equals'.
>
> "Cor Ligthert" <notmyfirstname@planet.nl> wrote in message
> news:uT3w%23vtNFHA.2356@TK2MSFTNGP14.phx.gbl...
>> Steve,
>>
>> Use a table("x").defaultview.rowfilter = "mycolumn = 'Steve'" for that
>>
>> I hope this helps,
>>
>> Cor
>>
>>
>
>