|
-
Jan 19th, 2003, 09:27 PM
#1
Thread Starter
Hyperactive Member
Select
I add a Button and put this code;
Dim aFind As String = InputBox("Enter a Employee No.", "Search for Employee No.")
Dim filteredRows() As DataRow = DataSet11.Employee.Select("empno='" & aFind & "'")
But it has no reaction. The DataGrid still show all the records.
What's wrong with this?
-
Jan 20th, 2003, 12:09 AM
#2
Lively Member
You have to add a clear statement first.
DataSet11.clear() 'Clear the dataset's data
and use the sql statement filter it out and fill it into the dataset
-
Jan 20th, 2003, 02:27 AM
#3
Registered User
If you set the datasource of the datagrid to a DataView instead you can use the DataView.RowFilter property to filter your data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|