Embedding controls in ListView - .NET FX 2.0

M

mehdi_mousavi

Hi folks,
I've got a probelm if embedding common controls in each cell of the
ListView control. First of all, I would like to know how am I supposed
to embed a specific LinkLable within a given cell/row of a ListView
control? If I set the OwnerDraw property and I override the
OnDrawSubItem function, I end up having something like this:

protected override void OnDrawSubItem(DrawListViewSubItemEventArgs e)
{
//Draw the requested item's background
//Draw the requested item's foreground
}

However, this means that I'll lose the LinkLabel's functionality
simply. It's hover facility and the like. So I think there should be
some other way to embed a control within a given cell *without losing
it's functionality*.

Any help would be highly appreciated,

Cheers,
Mehdi
 

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