Unplanned
Last Updated: 15 May 2026 11:29 by ADMIN
Curtis
Created on: 15 May 2026 11:19
Category: GridView
Type: Bug Report
0
GridView: BestFitColumns() width calculation ignores focused cell border width

The reported behavior is observed in VisualStudio2022Light (or dark), VisualStudio2012, Office2013, Windows11.

When the BestFitColumns() method is used, the column width will be calculated to fit the content. In a scenario where the content is the longest one in the column, it will be next to the left and right side cell borders. When such a cell is selected and marked as a current cell, the current cell border will be applied, which will shrink the space for the content, and ellipses will appear.

The BestFitColumns() method needs to take into account the current cell border width in different themes.

1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 15 May 2026 11:29

Hi Curtis,

Thank you for reporting this behavior. The workaround here, as suggested by you, is to increase the Width property of each column in the RadGridView's Columns collection.

for each myCol as GridViewColumn

    myCol.Width += (whatever extra column width you'd like to add)

next

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.