I have the following need for a custom control.
Two columns, n rows.
Column 1 is simple text (non-editable).
Column 2 is drop-down combo boxes (1 for each row).
Needs to be sortable (with column headers).
I'd prefer the second column to not display a column of combo boxes, but rather
the selected item text. When the use clicks on that cell, the combo box
appears.
I'm leaning to a datagrid w/ a template column for col 2, but was wondering if
there is something that is already out there that will suit my needs.
Thanks for any info. 2 1500
Check out PropertyGrid. If that doesn't meet your needs, subclassing a
ListView control would be lighter and snappier.
-vJ
"Julie" <ju***@nospam.c om> wrote in message
news:40******** *******@nospam. com... I have the following need for a custom control.
Two columns, n rows.
Column 1 is simple text (non-editable).
Column 2 is drop-down combo boxes (1 for each row).
Needs to be sortable (with column headers).
I'd prefer the second column to not display a column of combo boxes, but
rather the selected item text. When the use clicks on that cell, the combo box appears.
I'm leaning to a datagrid w/ a template column for col 2, but was
wondering if there is something that is already out there that will suit my needs.
Thanks for any info.
Hi Julie
You can use a Listview with two columns, when the user select a row you can
place a combobox right where the second column is making it looks like it
was contained in the grid all the time, you should make visible/hidden the
combobox as needed as well as calculate its position and if needed the
values, it sound like too much trouble but I think it's the best way to go
and at the end it should not be so difficult :)
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Julie" <ju***@nospam.c om> wrote in message
news:40******** *******@nospam. com... I have the following need for a custom control.
Two columns, n rows.
Column 1 is simple text (non-editable).
Column 2 is drop-down combo boxes (1 for each row).
Needs to be sortable (with column headers).
I'd prefer the second column to not display a column of combo boxes, but
rather the selected item text. When the use clicks on that cell, the combo box appears.
I'm leaning to a datagrid w/ a template column for col 2, but was
wondering if there is something that is already out there that will suit my needs.
Thanks for any info. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jean de Largentaye |
last post by:
Hi,
I need to parse a subset of C (a header file), and generate some unit
tests for the functions listed in it. I thus need to parse the code,
then rewrite function calls with wrong parameters. What I call "shaking
the broken tree" :)
I chose to make my UT-generator in Python 2.4. However, I am now
encountering problems in choosing the right parser for the job. I
struggle in choosing between the inappropriate, the out-of-date, the...
|
by: Bruce Pullum |
last post by:
I have a datagrid that I am using a DataView with. All works great for the
sorting of the columns. However, after I sort the column, and then try and
select a data row to edit, the row selected represents the indes of the
actual DataGrid and not the DataView. For example.. Lets say I have 4 rows
of data.. In the 4 rows I have an Appt Num of 1,2,3,4... Each representing
a data row... I sort DESC so the rows display 4,3,2,1... If I...
|
by: Tim Graichen |
last post by:
Hello,
I am making use of the Active X calendar control (mscal.Calendar.7) in
several places in my main form, with the following code
Below is an example of the code I'm using for the controls.
Private Sub DateSold_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
SoldCal.Visible = True
|
by: Peter van Gelderen |
last post by:
I saw a similar problem some postings ago, but with no real answer:
I have a database with a field for pictures, no problems normally, i could
enter pics in the
database. But now suddenly when i want to enter a picture only a icon with
the name of the
file shows up in the database. My old databases still show the normal pics.
What's wrong? Could it be acd-see or another program which messes up the
system?
|
by: E. Paul Wileyto |
last post by:
Can anyone help.
I would like to create a table that contains references to a series of
JPG files, so that I can view each image and related data in a form,
page by page. It seems that the only way to insert the reference to the
image is using the "Insert Image" dialog box, and with my long list of
images, I'll be old & gray by the time I am done. What I really want to
do is type in the list of filenames (or cut&paste), and have them...
| |
by: Julie |
last post by:
I have the following need for a custom control.
Two columns, n rows.
Column 1 is simple text (non-editable).
Column 2 is drop-down combo boxes (1 for each row).
Needs to be sortable (with column headers).
|
by: mike11d11 |
last post by:
For some reason I'm getting no data populating in my crystal report. I
built my crystal report off my dataset in my project, and I fill the
dataset when opening the main form, and count the records just to make
sure there is data in the dataset, and then open the form containing my
reportviewer control with the crystal report added to it and it still
shows no data when it opens. I built my crystal report off the wizard
when right...
|
by: ibeehbk |
last post by:
Hi. I have a form made in xhtml. I test via vbscript to make sure none of the fields are empty and properly formatted (ie email). All the regular fields work. However, I have two drop down menus that are SELECT elements (javascript-- one named arrivalcity and one named returncity). Basically they ask for a departure and return city and another menu appears with options based on that city. I can't seem to get the input from these fields in the...
|
by: angelicdevil |
last post by:
i have 2 tables 1 is status_type with field name status and other is users with field username and status
now i want that the first listbox lists all status from status type ( this i have achieved with php )
and based on selection of the value in listbox 1 the corresponding data in table users be loaded in listbox 2 .
i have achieved this by using a button in php but i want tht it operate without submit button and no page refreshing
...
|
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...
|
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,...
| |
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...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
| |
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...
| |