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
2985
Right padding
posted

Is there a way to add padding to the right of the grid or a column?  If I have columns sized to the width of the grid, but my right-hand column contains right-justified text, the text value appears too close to the edge of the grid for my liking.  I would like to create a gap of a few pixels to make it more visually appealing.

The only way I have found to do this is to add a blank column to the right of my existing column and size it as small as I can.  However, it seems the smallest I can make a column is 14 pixels - any width smaller than this is ignored.

Thanks.

Parents
No Data
Reply
  • 7615
    Offline posted

    Hello campbell ,

    Thank you for contacting. Adding padding to the right of an UltraGrid column can be achieved by using the CellAppearance property of the column.

    ultraGrid1.DisplayLayout.Bands[0].Columns["MyColumn"].CellAppearance.Padding.Right = 10

    Hope this will help, if not then may be explain the scenario and share your sample for me to try and test the options.

Children