Suggestions on this problem? (List of controls / user controls)

G

Guest

Hi,

I have a problem where i need to show non-standardised information in a list
and would like to provide in place editing if possible.

for example

Line 1 A B C
Desc 1 3 5 6

Line 2 I II III IV
Desc 2 2 4 5 5

The numbers under thier respective headers are the ones i need to provide
in-place editing for.

There should never be 100s of lines/items so i'm not too worried about
creating lots of window handles cos there shouldn't be too many.

However, should I...

a) use an owner drawn list / control and provide editing in a custom control
shown from a Dialog window that is opened after user has selected the item
he/she wants to edit? (no inplace editing)

b) create a user control which creates all the fields, labels etc and show
them in a scrollable control? inplace editing ok, but nightmare to code, esp
i'm additing and removing lines

c) use a datagrid, with an owner drawn column? is this possible?

I already have a user control which renders itself and child text boxes etc
for a single item, is there any control anyone knows of that can render a
series of user controls? or how do you create an owner drawn datagrid
column? (if it's possible)


there are a few options i guess, but none seem to be that good. I've seem
some 3rd party DataGrids that allow owner drawn cells but this must be
possible with DataGrid no?

any advice appreciated
 
G

Geoff Munday

I already have a user control which renders itself and child text boxes etc
for a single item, is there any control anyone knows of that can render a
series of user controls? or how do you create an owner drawn datagrid
column? (if it's possible)

From the following link...

"To create your own column classes, you can inherit from
DataGridColumnStyle. You might want to do this in order to create
special columns that host controls, as exemplified by the
DataGridTextBox class, which hosts the TextBox control. For example,
you can host an Image control to show pictures in columns, or you can
create your own user control to host in the column."

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridcolumnstyle(VS.80).aspx

Hope that helps.

Regards,

Geoff
http://nonspect.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top