What UI control should I use for this scenario?

  • Thread starter Thread starter Prasanna Sampath [MS]
  • Start date Start date
P

Prasanna Sampath [MS]

Hi,
I am trying to display the following data on a form. The data can be thought
of as having several rows each with 2 columns. The first column is just
static text. The 2nd column is a enumeration type (with fixed enumerations).
The user should be able to click a combo box and pick an enumeration.

What is the best way to display this kind of data in a form? I have tried
the following:
1. Tried a Panel control. and inside the panel I represented the 1st column
as a text box / label and the 2nd column as a combo box. The problem here is
that there is no vertical scrolling capability in NET CF. So only the first
say 10 rows are displayed.
2. Tried a datagrid. However I could not find a combo box style for the 2nd
column's datagridcolumnstyle.

Is there a way to do this?

Thanks very much.
-Prasanna
 
try this:
http://www.ihook.cc
go on opensource, download the TableControl.
there is an example with a combox editor.
it's in active developement, I have a version which is even better than the
downloadable one, and would be available sometimes next week.
 
Why don´t you use a DataGrid for showing asigned values for both columns,
and then, an edit area, say a panel, with a textbox label and a combobox for
editing the selected DataGrid row?

You could code the ItemSelected event(not sure of the name), to show
selected item in the edit area, and save the new enumeration value into the
DataGrid´s source DataSet.

Hope helps.
 
Thanks for all your ideas and suggestions. I will go through the 3 choices
and implement the best suited one for my app.

Thank you,
-P
 
Why not use a ListView in the Detailes View. Use a context menu for you
enumeration types and you can either float a text box over the currently
selected line or use a text box above or below your list view that contains
the currently selected line.

-Andrew
 
Back
Top