Infragistics(R) NetAdvantage(R) Windows Forms
EditButtonSpaceHolderUIElement Class
Members  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : EditButtonSpaceHolderUIElement Class

UI element used to render background of the space reserved for an edit button element when using the ColumnStyle of Edit.


Visual Basic (Declaration) 
Public Class EditButtonSpaceHolderUIElement 
   Inherits Infragistics.Win.UIElement
public class EditButtonSpaceHolderUIElement : Infragistics.Win.UIElement 


When using the column style of Edit, the edit button is displayed according to the UltraGridColumn.ButtonDisplayStyle property setting, which by default is when the mouse is over the cell. When the edit button is not displayed and the horizontal alignment of the cell content is center or right, the space where the edit button would be dispalyed when the mouse is moved over the cell is reserved so when the edit button is displayed, the cell contents do not have to be shifted left (otherwise the edit button would override the contents). However this poses a problem in that the cell itself doesn't draw its background color. The editor element draws the background color. The editor element doesn't occupy the space reserved for the edit button. Therefore there is a need for the cell background color to be drawn in the area when the edit button's space is reserved. This is precisely the purpose that this ui element serves. Note that if you are using gradients, you may want to set the BackGradientAlignment to Container or another suitable setting so the backgrounds of the editor element and this element aren't distinguished in regards to gradient rendering.

See Also