How to create a table?

Posted on 2003-03-26
Medium Priority
Last Modified: 2010-05-01

I would like to know how to create a grid in VB and programme each cell in the grid is able to change color and had click event. Or any alternative way to had a table with cell itself able to change color and event handling.

Question by:pupuboo
LVL 55

Expert Comment

by:Ryan Chong
ID: 8209432
i will try use the MSFlexGrid or ListView control, based on the requirement and then decide which one should use.

Expert Comment

ID: 8209536
You can use MSFlexgrid Control Component to include Grid in your Application and you can format each cell.

Accepted Solution

jinijose earned 750 total points
ID: 8210849

you can use a msflexgrid control.  On the click event of the flex control just type this
msgbox MsFlexGrid.textmatrix(MsFlexgrid.Row,MsFlexgrid.Col)

this will give you the content of the clicked cell.


Expert Comment

ID: 8222193
Another option is to use third party control, which is True DBGrid(if i'm not mistaken).

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

621 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