[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Store ArrayList in DataGridView Cell

Posted on 2006-05-12
4
Medium Priority
?
774 Views
Last Modified: 2008-01-09
I created an enhanced version of a DataGridView and want to store an ArrayList in one of the cells, actually a whole row of cells each with a unique ArrayList. I found example code showing how you would store a ComboBox in a cell. It requires that you instantiate DataGridViewCell but that class doesn't exist in my enhanced DataGridView. Do I need to enhance that class too for my control? Or is there another way to do this? Thanks,

Tim.
0
Comment
Question by:tmostad
  • 2
  • 2
4 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 1000 total points
ID: 16671113
Are you trying to do something like a combo box in a cell?

DataGridViewComboBoxColumn
http://msdn2.microsoft.com/en-US/library/xwx934x7.aspx

Bob
0
 
LVL 1

Author Comment

by:tmostad
ID: 16695005
Sort of. I could use a combbox but I need to add one single combobox cell in a text  column. The only examples I can find require the whole column be defined as datagridcombobox. I thought maybe I could just use a collection of some sort and somewhere I read that it is possible but I don't know how. I could make it work if I could assign any single cell in a sheet as a combobox then I could go from there. At the moment I am still stuck. Thanks,

Tim.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16695546
Tim,

It sounds like you are looking to define a single floating ComboBox control that floats over the cell, or a DataGridComboBoxColumn that is only applied to the current cell.  I need to make sure of what you want before I can comment.

Bob
0
 
LVL 1

Author Comment

by:tmostad
ID: 16695719
I am trying to add a single fixed ComboBox to a cell. I found some sample code that supposedly does this but what I see when I run it is the text "DataViewGridComboBox" in the cell. The code was in C so I had to translate it but it was very simple. If you can provide a working example that adds just a single combobox to a cell in VB.Net I can take it from there. THanks,

Tim
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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 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