Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,
I have a MS access database with 4 fields. It is populated with few entries. The fields are:

Name
Place
Age
PIN

Now, I created one datagridview and added 5 columns. These are:
Name
Place
Age
PIN
Due --> This is the 5th column I added.

Now I want to fetch 1st four fields' entries from database and insert 5th column with some value from a textbox. So, whenever I click on a ADD button, a row shall get created in the datagridview and shall populates all the 5 columns as mentioned above.
The row shall keep on adding till I press the ADD button.
Can someone help me on this?

Regards
Raj
Posted
Comments
Mahesh Bailwal 25-Aug-13 4:19am    
are you using dataset/datatable for binding data with gridview?

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