The flexgrid, created by ComponentOne, is a more robust grid component than the DataGridView available in Visual Basic by default. The two grid components are similar, but the flexgrid component provides more options and is more user-friendly.
- Skill level:
Other People Are Reading
Things you need
- ComponentOne FlexGrid
- Visual Basic
Create a new project in Visual Basic based on the Windows Forms Application.
Drop a flexgrid and select the form. Name the flexgrid, "fgTest" and the button, "btnRows".
Set the property of the flexgrid to allow the user to enter data into the grid.
Double click the button and add the following code to the button event:
Run the program and enter some rows into the grid.
Click the button and a message box should appear with the number of rows in the grid. Remember the header row will count as one.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for