Click here to Skip to main content
15,997,860 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB.Net. visual studio 2010

DataGridView in windows form. MS Access database. All tables in the database has no relation to each other.

There is no any issue with modify the access database table through the DGV, add new rows, delete rows, change values to any cell etc. I can save the change to the table.

The issue is how to display current record number, total record number in the table when moving from cell to cell inside the DGV. Each DGV row corresponding to one table's record. I want to display that record number (no the row number of the DGV). I also want to display the total record number in the table (not the total visible row number of DGV)

What I have tried:

DataGridView.datasource=bindingSource

DataGridView is totally working fine with database table.
Posted
Updated 13-Oct-17 8:43am
Comments
j snooze 18-Jul-17 17:11pm    
There should be like a row selected or cell selected event that passes in the current row or cell object. You should be able to grab the information from that.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900