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
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