Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataRepeater Control WinForms remove dotted line

I have a DataRepeater control in a WinForms application.

The question is simple: how can I get rid of the dotted line that always appears when an item is selected?

enter image description here

like image 294
Joel Avatar asked Mar 28 '26 16:03

Joel


1 Answers

This happens if you set _dataRepeater.ItemHeaderVisible = false. Since item headers are not visible, the repeater shows this dotted line in order to show which is the current item of the repeater.

Turns out there is actually a simple way to achieve this:

_dataRepeater.ItemHeaderVisible = true;
_dataRepeater.ItemHeaderSize = 0;

Which will achieve the same but without the dotted line.

like image 198
Joel Avatar answered Mar 31 '26 06:03

Joel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!