|
-
Nov 15th, 2000, 09:06 PM
#1
Thread Starter
New Member
I was wondering if anyone could help me.
I have a MSFlexGrid taking information from a database using a data control. I was curious if it was possible to select a cell and then edit it, while saving the changes to the original database.
Thanks,
aknighter
-
Nov 15th, 2000, 11:15 PM
#2
Addicted Member
There is cluge to do this with the flexgrid but I would recommend another grid control, the data grid. The cluge is to place an invisible text box on the form and when the user selects a cell on the grid, make the textbox visible with the same dimension of the selected cell with it overlaying the cell, enter text into the textbox, update the grid and data based on the contents of the textbox.
I have used this method before, and it is common method for the flexgrid. If you need the code, let me know and I will dig it up. Let me reiterate, that the datagrid provides direct editing of its contents and you bind it the same way.
Shawn Hull
VB6, SP3 (Professional Edition)
-
Nov 19th, 2000, 05:51 PM
#3
New Member
In the users guide of vb 5.0 exist the way to edit a flexgrid with the code necessary, but isn't very flexible.
I wanna know another method to do the same.
Look it and check.
-
Nov 20th, 2000, 03:57 AM
#4
New Member
Hi in addition to what has been told to you remember that U will have to move the text box to the cell U want to edit
Bye
-
Nov 23rd, 2000, 09:20 PM
#5
Lively Member
i have been stick with the same problem as you have for the last week
if you have come up with a way to get around this can you please let me know how i can edit/add data in the grid then save it to my sql 7 database
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|