hi,
i want to develop a serch sereen in C# using dataset windows application
for instance i have a datagrid wth a text box when i enter 1 the datagrid shld be filled by numbers starting from 1 or when i enter 123 it shld be filled dynamically with numbers starting from 123.
the action shld be done on dataentry on text box
regards
Desiging advanced search
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Aug 28, 2010, 3:36 AM EDT
I think you can do something like this:
string filter = "ColumnName LIKE %keyword%";
DataRow[] foundRows = dataSet1.Tables["TableName"].Select(filter);
DataGrid.DataSource = foundRows;
Mahesh ChandRank #1 · 393.3K reputationPosted Aug 28, 2010, 3:41 AM EDT
string keyword = TextBox1.Text;
"ColumnName LIKE %'+keyword+'%"
DataView view = new DataView();
view.Table = DataSet1.Tables["TableName"];
view.RowFilter = keyword;
DataGrid1.DataSource = view;