Solved

VB.net is it feasible to try and add different ComboBox items to different rows of a DataGridView

Posted on 2012-04-09
4
233 Views
Last Modified: 2012-04-09
In VB.net is it feasible to try and add different ComboBox items to different rows of a DataGridView
0
Comment
Question by:murbro
  • 2
4 Comments
 
LVL 5

Expert Comment

by:rtay
ID: 37825161
I do not quite understand.  Are you trying to add a comboBox to a datagridview control?  if so that can be done.  You just need to make it a template field.  Let me know if this is what your asking and I will elaborate.
0
 

Author Comment

by:murbro
ID: 37825207
Hi. I was thinking of having several rows where each row has ComboBoxes containing items unique to that row
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37825314
programatically add rows and then in each cell add different combobox control as you like, here is how to add rows to gridview programatically:-

http://devpinoy.org/blogs/keithrull/archive/2008/07/28/how-to-create-dynamic-input-rows-in-a-gridview-with-asp-net.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx
0
 

Author Closing Comment

by:murbro
ID: 37825372
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

16 Experts available now in Live!

Get 1:1 Help Now