Results 1 to 3 of 3

Thread: MS Flex Grid control

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Minneapolis
    Posts
    42
    Hi There,
    Can i know how to edit the cells in the MS Flex grid control in Visual Basic.
    It seems the MSflex grid control does not allow to update the cells with in the grid.

    Please reply soon.
    Thanks
    Srini

  2. #2
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    I'm afraid you can not edit the FlexiGrid cells directly. But, you can use a TextBox. If you put the TextBox exactly over the FlexiGrid cell and set to Left, Top and Width properties of this as it hasthe same size and position of the cell, it seems like the celll in editing mode.

    Use something as it follows:

    Text1.Top = FlexiGrid1.CellTop
    Text1.Left = FlexiGrid1.CellLeft
    Text1.Width = FlexiGrid1.CellWidth

    In the Change property of the TextBox (for example) you can put the following:

    FlexiGrid1.Text = Text1.Text

    You must take care of more aspects of this, but this is the most important. When you ends the editing you should turn FALSE the visible property of hte TextBox.

    Good Look!
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  3. #3
    Lively Member
    Join Date
    Jul 2000
    Posts
    104
    Use the DBGrid control. It allows a user to modify cell contents at run-time.

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