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
235 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 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