How to add multiple rows to Datagrid
-
Hi, I am having a form with a datagrid control. I have few textboxs and comboboxs to receive data from user. On compliting the entry in these textboxs and combo boxes, the user presses a command button which enters the contents to the datagrid. and it clears all the textboxs,comboboxs to added the new contents. And then next record in entered to the datagrid. Finally on pressing a command button only the two records should be added to the database. 1. How to add data to datagrid by each cell. I have done it using datasource. 2. Is it possible to temporary display data and on pressing a button it has to perminently add to database. 3. Can we add more than one record at a time in datagrid. Thank you, Anu.
-
Hi, I am having a form with a datagrid control. I have few textboxs and comboboxs to receive data from user. On compliting the entry in these textboxs and combo boxes, the user presses a command button which enters the contents to the datagrid. and it clears all the textboxs,comboboxs to added the new contents. And then next record in entered to the datagrid. Finally on pressing a command button only the two records should be added to the database. 1. How to add data to datagrid by each cell. I have done it using datasource. 2. Is it possible to temporary display data and on pressing a button it has to perminently add to database. 3. Can we add more than one record at a time in datagrid. Thank you, Anu.
Dear friend, You can use dataset to store the information. The datagrid is actually set it's datasource to the datagrid. So when the dataset is updated, the datagrid will update too. Regards, Cherhan p/s: Feel free to email me at leoforum2003@hotmail.com if u need further help. :):mad:
-
Dear friend, You can use dataset to store the information. The datagrid is actually set it's datasource to the datagrid. So when the dataset is updated, the datagrid will update too. Regards, Cherhan p/s: Feel free to email me at leoforum2003@hotmail.com if u need further help. :):mad:
Hi Cherhan, Let me thank you for every thing. Actually I am using VB.6, can I use dataset in it. Sorry if I have asked a basic question. I am very new to VB. I am learning on my own. It will be helpful if u could write little bit in detail. I mean algoritham. Thank you very much Anu
-
Hi Cherhan, Let me thank you for every thing. Actually I am using VB.6, can I use dataset in it. Sorry if I have asked a basic question. I am very new to VB. I am learning on my own. It will be helpful if u could write little bit in detail. I mean algoritham. Thank you very much Anu