CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: msflexgrid

  1. #1
    Join Date
    Mar 2001
    Location
    Limerick, Ireland
    Posts
    8

    msflexgrid

    Hello, I am trying to write an application using msflexgrid and I need to be able to delete columns. I know that the removeitem deletes rows but I cannot figure out how to delete a column.

    any help would be much appreciated,

    kind regards,

    John F.


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: msflexgrid

    you can look at the Cols property.

    for instance if you got three col now and want only 2,

    MSFlexGrid1.Cols = 2

    hope this help.

    cksiow
    http://vblib.virtualave.net - share our codes


  3. #3
    Join Date
    Mar 2001
    Location
    Limerick, Ireland
    Posts
    8

    Re: msflexgrid

    Sorry, I should have been more explicit in my explanation of what I wanted. I need to be able to delete a selected column. If I use the cols property only the last row will be deleted.

    John F.


  4. #4
    Join Date
    Apr 2000
    Posts
    737

    Re: msflexgrid

    I am not sure whether there got any method to do so. however, you can create another msflexgrid and transfer all data to the new one and erase the first msflexgrid, though dump, but it might work.

    let me know if you find out how to solve this.


  5. #5
    Join Date
    Mar 2001
    Location
    Limerick, Ireland
    Posts
    8

    Re: msflexgrid

    Thanks very much for the help, but I have the problem solved. I set up two loops to copy the data from the column next to the one to be deleted into the one to be deleted, and so on until the last column, and then just deleted the last column. It seems to be working okay

    kind regards,

    John F.


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

Featured