473,382 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Help w/ choosing a control type

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.
Nov 16 '05 #1
2 1478
Check out PropertyGrid. If that doesn't meet your needs, subclassing a
ListView control would be lighter and snappier.

-vJ

"Julie" <ju***@nospam.com> 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.

Nov 16 '05 #2
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.com> 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.

Nov 16 '05 #3

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

Similar topics

11
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....
4
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...
0
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...
1
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...
2
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...
2
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...
1
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...
3
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...
45
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.