data search

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

What is wrong with this search?
I always get ALL data from table.

dataSet.Tables[Group.Text ].DefaultView.RowFilter=

"Name = " + "'" + textBoxName.Text + "'" ;

gridSearch.Table=db.dataSet.Cookies ;



Hrcko
 
dataSet.Tables[Group.Text ].DefaultView.RowFilter= "Name = " + "'" +
textBoxName.Text + "'" ;
This is fine, make sure you attach the DefaultView to the datasource and
not DataTable

Chris


Hrvoje Voda said:
What is wrong with this search?
I always get ALL data from table.

dataSet.Tables[Group.Text ].DefaultView.RowFilter=

"Name = " + "'" + textBoxName.Text + "'" ;

gridSearch.Table=db.dataSet.Cookies ;



Hrcko
 

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

Similar Threads

data in grid 1
Returning multiple values 11
tables search 2
searching through tables 2
search through dataSet 2
treeview control continous... 3
DataTable Subset to new DataTable 1
data in comboBox 1

Back
Top