Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


how to reset a msflexgrid control

Posted on 2004-10-30
Medium Priority
Last Modified: 2013-12-26

I am trying to reset my flexgrid control once the user has pressed a "done" button. I could use help resetting the grid to only display the title bar ->>    MSFlexgrid.TextMatrix(0, whatever)

ive tried the msflexgrid.Redraw = (True) and msflexgrid.Refresh   but they don't get rid of rows which is what i am looking for. I did not see any delrow or any such property like that so I can't figure out how to delete a row using properties.

any help is appreciated.

Question by:anger_beaver
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Accepted Solution

JR2003 earned 500 total points
ID: 12456300
This line will set the number of rows on a FlexGrid to 1. You can also do a similar thing with 'Cols'.

    MSFlexGrid1.Rows = 1

Expert Comment

ID: 12484760
msFlexGrid1.Rows = 0
msFlexGrid1.Cols = 0

These two lines will clear entire control.

You could also use next code to clear all cells

For i = 0 to msFlexGrid1.Rows - 1
  For j = 0 to msFlexGrid1.Cols -1
  Next j
Next i

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question