Results 1 to 5 of 5

Thread: editing flex grids

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    15
    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

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    230

    Wink

    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)

  3. #3
    New Member
    Join Date
    Aug 2000
    Location
    Colombia
    Posts
    10

    Wink

    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.

  4. #4
    New Member
    Join Date
    Nov 2000
    Location
    India
    Posts
    8

    Exclamation

    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

  5. #5
    Lively Member
    Join Date
    Sep 2000
    Posts
    103

    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
  •  



Click Here to Expand Forum to Full Width