Dataview.Rowfilter help

S

s26f84

hey guys

I am tring to implement a filter in a datagrid. I am using a datatable
which is the datasource for the grid.
I need to filter set of rows. i.e. from row 1 to row count. i need to
keep my row 0 intact, which is an option to add a new person.

textbox key up code looks like this:

string strRowFilter = String.Concat("Name LIKE '%", txtName.Text,
"%'");
dv.RowFilter = strRowFilter;
grdNames.DataSource = dv;

plz help

sunny
 
S

s26f84

hey Kevin
thanks for the reply... but still not able to geeet how to do there is
stuff but nothing about how to make a fixed or always visible row in
dataview... The expression one helps in calculations and stuff... thts
kool, might help me in future but my problem still exists...

a fixed row in a filtered dataview.. :(
 
S

s26f84

sort of nailed it using a tricky way... lol...

thanks alot for ur time though :)

regards
sunny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top