Flex Grid - Add, edit and delete

how to add, edit and delete records in Flex Grid and how to update the database through flex grid with using datacontrol and without using datacontrol.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You cannot do any manipulations using MS Flex Grid. It is Read-only.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I have an article by Mr. Frank Sommer, Microsoft Regional director, Northern Ca.
"MSFlexGrid Tips and Tricks"
October 1997

This article shows several trick with Flexgrids , one being to 'float a text box' over the grid to handel the editing.
I tried it and it works! Check the MS site for this report

I am writing this comment for your previous question in which you had asked abount invoice type updates.

If you want to make an invoice type update that is if for one entry of Name & Date there are multiple entries of products, then you can also use a list box.
You can use text boxes to enter & edit or delete items in the list boxes

  you can use the following code for multiple updates.

If working with datacontrol
With Data1.recordset
  For i = 0 to List1.ListCount-1
     .Fields("Name") = txtName.text
     .fields("Date") = txtDate.text
     .fields("BillNo") = txtBillNo.text
     .fields("Item") = List1.List(i)
     .fields("Quantity") = List2.List(i)
     .fields("Rate") = Val(List3.List(i))
  Next i
End With
Yes i've done this myself using a floating textobox postition in the cell when it's clicked.It worked nicely for me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.