Click here to Skip to main content
15,917,321 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed a project in VB.NET where a form contains a datagridview without datasource. This datagridview contains a collection of textbox columns. Here I enter text in this column and this text is inserted into a database table.
Whenever entering text in the textbox column of datagridview, how do you autopopulate.

Simply autopopulation of datagridview texbox column column.
Posted
Updated 25-Aug-10 8:00am
v3
Comments
M. Mohsen 21-Aug-10 18:06pm    
Do you mean autopopulate as in automatically insert in the database?
Sandeep Mewara 21-Aug-10 23:13pm    
What is the question here?
Dave Kreskowiak 24-Aug-10 0:24am    
You're going to have to explain what you mean by "autopopulate". Are you talking about an autonumbered key column? Default values in certain columns? What?

Also, you'd probably want a backing database with all the schema details like this in it. This would be used as a template of sorts for a DataTable object you bind the grid to and some of this "autopopulate" stuff might be handled for you. But, again, that depends on the details you left out of your question.
Sandesh M Patil 25-Aug-10 11:17am    
Please give us some code here to elaborate

1 solution

Sorry for the previous answer, I thought it is in ASP.NET.

Anyway, I got what you meant (I hope so).

You need a datagridview in which you need to display data and this data was entered in the textboxes of datagridview.

For this, you need to add data from another form.

Such type of applications are mostly used for inventory based applications. I worked in such applications. But I don't have code right now.

Anyway I have the link below where you can get help.
Datagridview

I hope this may help you.... :)
 
Share this answer
 
v2

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