Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
790
I need my space...
posted

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.

 

  • 469350
    Offline posted

    You might try using CellPadding to create a little padding inside the cells so there is some extra room.

  • 71886
    Offline posted

    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.