I have a radgridview with fullrowselect enabled. When i select a cell, the row is selected correctly, but the selected cell changes padding or width slightly which seems to affect the entire column.
It's just a minor visual annoyance, but is there a way to prevent this?
Thanks,
Philip
Dess | Tech Support Engineer, Principal
Telerik team
commented on 03 Mar 2023, 12:13 PM
Hi, Philip,
According to the provided information, it wouldn't be easy to determine what causes the undesired behavior you are facing. Could you please elaborate? It would be greatly appreciated if you can provide a sample screenshot of the before/after experience illustrating the column's width increase? What is the Telerik WinForms theme that you are using in your application?
Once we get better understanding of the precise case, we would be able to provide further assistance. Thank you in advance.
I've managed to solve it. In CellFormatting I had: e.CellElement.DrawBorder = False only for the selected and current cells. This caused a small shift in the content as the other cells still had the border drawn.
Philip
Dess | Tech Support Engineer, Principal
Telerik team
commented on 08 Mar 2023, 05:53 AM
Hi, Philip, I am glad that you have found a suitable approach for resolving the undesired style settings that you are facing. Off topic, note that it is helpful the use the spy tool and inspect the visual elements at run time so you can see what settings are applied.
Hi, Philip,
According to the provided information, it wouldn't be easy to determine what causes the undesired behavior you are facing. Could you please elaborate? It would be greatly appreciated if you can provide a sample screenshot of the before/after experience illustrating the column's width increase? What is the Telerik WinForms theme that you are using in your application?
Once we get better understanding of the precise case, we would be able to provide further assistance. Thank you in advance.
Hi Dess,
Thank you for your reply.
I've managed to solve it. In CellFormatting I had: e.CellElement.DrawBorder = False only for the selected and current cells. This caused a small shift in the content as the other cells still had the border drawn.
Philip