We are trying to use a boder around the row to indicate the active row. We have it working using a DrawFilter to draw the border after the row is drawn. It is working...but it is hard to get a border bold enough to make it clear that the row is active without some other UI element over-drawing part of the border.
Is there an easy way to use a CreationFilter (or something else) to inflate a grid element's size? I would like to make some clear space available for a 2 pixel border around the entire RowUIElement so that it is not drawn over by the cell or any other sub element. Here's a picture of what I am having happen currently when a cell is in edit mode.
You might try using CellPadding to create a little padding inside the cells so there is some extra room.
Hello mathdx,
Could you please try the following code and see if it meets your requirements:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.ActiveRowAppearance.BorderColor = Color.Red; e.Layout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Rounded4Thick; e.Layout.Override.RowSpacingAfter = 1; e.Layout.Override.RowSpacingBefore = 1; }
Please do not hesitate to contact us if you need any additional assistance.