Data Grid can they include a combo box ?

Posted on 2006-04-08
Last Modified: 2010-04-23

I am using VB.Net 2005, i am a Beginner to moderate experience.

I have a question i'm not sure if its about data grids or not but is the only thing i can think.

Can a data grid include a combo box in some columns ?  If so how - whats the code ?

What i am trying to do is read data from a CSV file, into a GUI for a user.  I wanted the user to be shown the column headings from the CSV File and include a combo box underneath each column heading, so the user can select the data type for each column (similar to access import, wizard).

This will be used for several different CSV files so the amount of columns that will be included is un-determined and not fixed so needs to be done programmatically.  

This is why i thought a data grid could be used because it has the scrolls bars would not matter how many columns there are as they can just move it to the left or right as needed. Also, although i have to admit i have never really used data grids i preume that it is easy to add another coulmn programmatically as needed ?

I am open to any other suggestions, though if there is anything better.


Question by:yo_daz_uk
    LVL 14

    Accepted Solution

    Yes it can, you can create your own datagrid style.

    Look e.g. at this site, or google for : datagrid combobox style


    Author Comment

    I am stugling a bot understaning what they mean.

    Your link was for c# code so have been looking on google.  Not getting very far.

    Any help ?

    Author Comment

    I do not need a data grid i can simply use a panel for what i need.

    I will award the points to Pocky although i really was expecting a much more detailed explanation for 200 points than look on google, or a link to a C# website.
    LVL 14

    Expert Comment

    Sorry if you feel left out on information, if you need help translation the example to VB.NET, I'm happy to assist

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now