473,657 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grid control with nested combobox

Well I'm new to C# and I do not know of all of the
different controls yet. The grid you are referring to is
that the datagrid control, and if yes, would it be
possible to use it without a database for storing my data.
I have my data stored in collections. Do you know of any
good tutorials on the (data)grid control that could show
me how to implement something like the property tables in
VS.NET where you have this multicolumn grid and are able
to select different values from comboboxes.

best regards Jesper.

Jesper,

I don't think that this is possible with the list
view. If it is, then
it is going to be dirty (hiding the combobox, redirecting
input, etc, etc).
I would recommend a grid that has this kind of
functionality instead.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Jesper DK" <je****@hotmail .com> wrote in message
news:08******** *************** *****@phx.gbl.. .
Hi,

In a list box with multiple columns and rows I would like to nest a combobox in some cells. Is this possible, do
you know of any good tutorials showing this.

best regards Jesperr.

..
Nov 15 '05 #1
0 3260

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4941
by: Bhom | last post by:
I am trying to create a grid on a form that looks like the 'Split Transaction' grid in Quicken - it allows drop down controls in various cells of grid to make a selection, and then stores the text of the drop down list/combo boxes in the grid. I know how to use hidden combo/list boxes that display when a user clicks on a cell that is setup with the drop down button and event. However, when the user makes a selection, the ID (bound...
6
4751
by: JMe9ka | last post by:
I've been gnawing at this problem for the past two days with little progress. My intent is to create a table or grid that looks and functions like the Properties window in Visual Studio.NET. I'm not sure if anyone has been able to accomplish this in a relatively non-trivial manner, but if someone has, please let me know. My deadline is approaching. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in...
4
2999
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be added to the data grid. My current code is coming up with errors, dt and drv are unknown in the else part of the if statement. if (this.dgPrivileges.DataSource == null) {
2
2246
by: Antoine | last post by:
I would like to construct my own list of items in a grid/ table/ item list layout but I have a problem. I want to add a sort of index row based on time, such as there might be blank values. Sure the data list I have at the moment is in order, but I would like to have each interval possible, and instead of repeating the row index (the time value) I would like to list it once and then list the items within it (the items associated with...
2
1939
by: Eric Eckberg | last post by:
I have been searching for a solution or example and just can't find one. My application uses lookup tables to populate a combobox. The lookup table is maintained by the user. For instance, the status of an employee (active, terminated, medical leave, military leave, etc.). The lookup table contains three fields: iID (auto numbering primary key); cDescription (the text); iOrder (the order to display the records in the combobox). ...
1
2091
by: fiaolle | last post by:
Hi The first set of source code is the class for a combobox in a grid, hopefully. In the second set of code we try to use the combobox class, but the grid is empty. I don't understand how this works. The first set of code I downloaded from internet and when i tried it, it worked fine. But when I changed the second part of the code it started to give me trouble. Before I changed the code they used Datacolumns,Datarows and Datatables and...
2
3136
by: mfleet1973 | last post by:
Hello (again), Within my datagrid I add a control to the datagridtextboxcolumn when the underlying textbox receives focus as follows: Combobox1.Size = New Size(Datagrid1.GetCurrentCellBounds().Width + 3, combobox1.Size.Height) sender.Controls.Add(Combobox1) This works great. The problem is that when focus is set on the
2
3174
by: Sin Jeong-hun | last post by:
There's DataGridView control in the .NET but it lacks of some critical functionalities. I need to use a ComboBox(to be exact, it is a control inherited from ComboBox) control to receive inputs into cells. But I can't do that with DataGridView. There is a sample to embed ComboBox in DataGridView but that had a bug. When the DataGridView is scrolled, the ComboBox still remains in old position. I just want a grid control, where I can...
1
2102
by: Ahmad Jalil Qarshi | last post by:
Hi, I am developing a Windows Form based application in C# 2005. I have placed a Grid control on the Form and using MS SQL server 2000 at back end. Now the Grid is showing different columns from a table Table1. There is a column in the grid named "Sender Name". A combobox is embeded in this column. Now what I want is that when a row of the Grid is in edit mode, this
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.