•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,589 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,586 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3932 | Replies: 3
![]() |
I must be getting soft....
How the heck to do I programmatically add new rows to a datagrid / flexgrid or whatever grid using VBA?
It's not bound to anything and I'm trying to add data on the fly. Any ideas?
How the heck to do I programmatically add new rows to a datagrid / flexgrid or whatever grid using VBA?
It's not bound to anything and I'm trying to add data on the fly. Any ideas?
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
ConnectNL Directory | NLTourist | Free eLearing Courses
•
•
•
•
can use flexgrid.rows=flexgrid.rows+1
let me know wht the exact problem do u have
Sorry, forgot to say that this is an Office VBA application, not straight VB. It's a cinche in VB 6, but in Access 2003, the datagrid or flexgrid controls seam to only allow additions and deletions when bound to a table.
I'm trying to add rows without binding the control. I'll try your code anyway in hopes it will work when I get back to my production computer...
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
ConnectNL Directory | NLTourist | Free eLearing Courses
anto_nee, thats exactly right. Problem with Access is it doesn't give you all the properties in the properties drop down, and of course after a while we get lazy and forget all the properties available to us.
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
ConnectNL Directory | NLTourist | Free eLearing Courses
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- How to add dynamic row in datagrid? (ASP.NET)
- How to prevent moving to any row of the datagrid if there is error while editing. (VB.NET)
- How to delete a particular row from a datagrid..? (VB.NET)
- select row in datagrid....need help (VB.NET)
- Accessing Datagrid selected row cell value (c# .NET) (ASP.NET)
- DataGrid Column & Row (Pascal and Delphi)
- Deleting a Row From A DataGrid (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Nid Ideas on making a Chat Box , and is connected to a database
- Next Thread: run-time error '3027' can't update


Linear Mode