Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Data Grid can they include a combo box ?

Posted on 2006-04-08
Medium Priority
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
  • 2
  • 2
LVL 14

Accepted Solution

PockyMaster earned 400 total points
ID: 16408633
Yes it can, you can create your own datagrid style.

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



Author Comment

ID: 16416310
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

ID: 16416432
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

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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

571 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