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
 
Back
Top