Embedding controls in ListView - .NET FX 2.0

  • Thread starter Thread starter mehdi_mousavi
  • Start date Start date
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
 
Back
Top