I am using NetAdvantage for .NET 2008 Vol. 2 CLR 2.0.
I have several questions regarding adding a button to a UltraWinGrid column header and having it do something useful.
Right now, I have managed to create the buttons by using a CreationFilter on the UltraWinGrid; i.e. I set
in the form's Load event.
The function itself is pretty basic:
btnElement.Rect = New Rectangle(parent.Rect.X + 2, parent.Rect.Y, _
End If
End Function
The buttons show up on every column header, but now the captions don't appear! So I have four questions:
Hi David, would you mind posting some code that you eventually implemented for getting the button and label?
Also being very new to CreationFilter I am not sure how your class AddUpdateButtonsCreationFilter() relatesto the function BeforeCreateChildElements
Lastly how did you resolve the tooltip question.
Thanks!
here is what i did to get this to work for my grid (although not 2008 version)...sorry the format sucks, the textarea for their website needs to be better, but i try to format as best as i could.
Private
Infragistics.Win.UIElementEventArgs) _
ugDetail.MouseEnterElement
(Infragistics.Win.UltraWinGrid.UltraGridCell)), UltraGridCell)
Then
ToolTip1.SetToolTip(
)
Else
If
(sender, Windows.Forms.Control), acell.Text)
Sub