Results 1 to 4 of 4

Thread: msflexgrid directly writing on the cell,resize cell auto?

  1. #1

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158

    msflexgrid directly writing on the cell,resize cell auto?

    Hello,

    First:***** MSFlexgrid control:when I click the control , I want to access to grid and directly write on selected cell , not to use with inpubox or textbox...etc.How?

    Second:*****How can I let the msflexgrid control resize its cell width according to text length?

    Thanks......
    Last edited by oktay; May 24th, 2001 at 04:58 AM.

  2. #2

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158
    It must be simple.How can I do it?

  3. #3
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819
    I don't think you can do it with MSFlexGrid. You'll have to get a different Grid control to be able to edit directly in a cell.

    Try TrueDBGrid - that's quite neat. It's by ComponentOne - www.componentone.com
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

  4. #4
    Member
    Join Date
    Dec 2000
    Location
    UK
    Posts
    39
    Flex grid cells are read only so you cannot edit them without the old floating textbox.

    As for auto sizing columns it's not a built in feature but is easy to achieve, you need to use the TextWidth method of a form or picture box to return the length of the text, and then set your column width accordingly (allowing a bit of extra space for the cell padding).

    When doing this ensure that the scale mode of your form/picturebox & grid is set the same.

    Tryster

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