creating a custom listview item

G

Guest

Can anyone point me in the direction of creating a custom listview item? I
guess the other question then - is this possible? I want to create a list of
listview items comprised each comprised of text and a set of textboxes.
 
N

Nicholas Paldino [.NET/C# MVP]

This is going to be pretty hard to do. Windows Controls do not natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.

If you are able to, take a look at Windows Presentation Foundation, as
it would provide what you need much more easily.
 
M

Moty Michaely

This is going to be pretty hard to do. Windows Controls do not natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.

If you are able to, take a look at Windows Presentation Foundation, as
it would provide what you need much more easily.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Can anyone point me in the direction of creating a custom listview item?
I
guess the other question then - is this possible? I want to create a list
of
listview items comprised each comprised of text and a set of textboxes.

Hi,

Why not using DataGrid?

Moty
 
N

Nicholas Paldino [.NET/C# MVP]

Well, one could use a datagrid. They are different things,
conceptually, but if it suits the OP's needs, then by all means, it would
work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Moty Michaely said:
This is going to be pretty hard to do. Windows Controls do not
natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.

If you are able to, take a look at Windows Presentation Foundation,
as
it would provide what you need much more easily.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

message

Can anyone point me in the direction of creating a custom listview
item?
I
guess the other question then - is this possible? I want to create a
list
of
listview items comprised each comprised of text and a set of textboxes.

Hi,

Why not using DataGrid?

Moty
 
M

Moty Michaely

Well, one could use a datagrid. They are different things,
conceptually, but if it suits the OP's needs, then by all means, it would
work.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


This is going to be pretty hard to do. Windows Controls do not
natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.
If you are able to, take a look at Windows Presentation Foundation,
as
it would provide what you need much more easily.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
message

Can anyone point me in the direction of creating a custom listview
item?
I
guess the other question then - is this possible? I want to create a
list
of
listview items comprised each comprised of text and a set of textboxes.

Why not using DataGrid?

Nich (hope I can call you nich),

you are absolutely right, there are many differences (conceptually and
visually), but if the needs are editable cells and UI Providers, maybe
the OP should reconsider using listview (by it's current
features...).
As in my opinion, the cost of owner drawing the list items climbs the
usefulness.

Moty
 
R

Rick Lones

Nicholas said:
This is going to be pretty hard to do. Windows Controls do not natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.

If you are able to, take a look at Windows Presentation Foundation, as
it would provide what you need much more easily.

You might check out the following codeproject control:

http://www.codeproject.com/cs/miscctrl/aa_listview.asp

This is a listview-like control (it does NOT inherit from .Net listview) which
has the hooks you need to embed a custom control into the list items of a given
column. I have used it, it works. Comes with source and some examples. It may
be that you can do the same with the 2.0 DataGridView as others have suggested .
.. . not sure about the custom control part, though.


HTH,
-rick-
 
G

Guest

Thanks, Rick. I've dowloaded the files and will see if this fits in to what
I'm trying to accomplish.
 
G

Guest

Thanks for you help. I'll do a little research in to implementing this in to
a datagrid.

Moty Michaely said:
Well, one could use a datagrid. They are different things,
conceptually, but if it suits the OP's needs, then by all means, it would
work.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


On May 18, 10:04 pm, "Nicholas Paldino [.NET/C# MVP]"
This is going to be pretty hard to do. Windows Controls do not
natively
support composition, so you would have to handle all the
repainting/positioning/etc, etc, yourself.
If you are able to, take a look at Windows Presentation Foundation,
as
it would provide what you need much more easily.
message

Can anyone point me in the direction of creating a custom listview
item?
I
guess the other question then - is this possible? I want to create a
list
of
listview items comprised each comprised of text and a set of textboxes.

Why not using DataGrid?

Nich (hope I can call you nich),

you are absolutely right, there are many differences (conceptually and
visually), but if the needs are editable cells and UI Providers, maybe
the OP should reconsider using listview (by it's current
features...).
As in my opinion, the cost of owner drawing the list items climbs the
usefulness.

Moty
 

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