How to search data on DataGridView?
-
Hi, everyone Now, I'm use to data paging in DataGridView. When I search data on DataGridView that is just show data in present page. I would like get all data rows of DataTable that is being data paging on DataGridView. For example: pagesize = 5, DataTable have two pages. data in 1st page:
name age
John 21
N.John 20
Nancy 20
Tomath 21
Jan 22and data in 2nd page:
name age
Jany 20
Alpha 21
Don 22
Bony 20
Tomy 22One-page is present page. I'm beginning search data at "name" column as 'Tom'. It is just show one row in DataGridView. This data is correct when it show two rows in DataGridView. That is all. Did the way solve this problem? Can anyone help me?:confused:
-
Hi, everyone Now, I'm use to data paging in DataGridView. When I search data on DataGridView that is just show data in present page. I would like get all data rows of DataTable that is being data paging on DataGridView. For example: pagesize = 5, DataTable have two pages. data in 1st page:
name age
John 21
N.John 20
Nancy 20
Tomath 21
Jan 22and data in 2nd page:
name age
Jany 20
Alpha 21
Don 22
Bony 20
Tomy 22One-page is present page. I'm beginning search data at "name" column as 'Tom'. It is just show one row in DataGridView. This data is correct when it show two rows in DataGridView. That is all. Did the way solve this problem? Can anyone help me?:confused:
What? Can you explain the problem a little better?
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
Because programming is an art, not a science. Marc Clifton
I gave up when I couldn't spell "egg". Justine Allen