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

Thread: MSFlexgrid

  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    MSFlexgrid

    Hi, does anyone know how to clear the MSFlexgrid without touching the first row at run time?

    rgds
    Lynn


  2. #2
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: MSFlexgrid

    Lynn,
    There are two ways -
    1. Use Msflexgridq.clear method to clear the contents and then again build heading in the first row using msflexgrid1.formatstring method.

    2. I use this procedure to clear the contents except ist row

    for i = 1 to msflexgrid1.rows -1
    for j = 0 to msflexgrid1.cols - 1
    msflexgrid1.textmatrix(i,j) = ""
    next j
    next i



    This is good when data is less.

    regards,


    Santulan

  3. #3
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: MSFlexgrid

    Clear or Remove?
    If you just want them removed, set the Rows Property to 1.

    If you want them Cleared, set the Rows Property to 1, then Back to the No. of Rows you Require.


    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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