This is a migrated thread and some comments may be shown as answers.

how to resize row number column

1 Answer 95 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
eunji
Top achievements
Rank 1
eunji asked on 08 Nov 2016, 06:53 AM

Hi there,

Is it possible to resize a row number column (the first column) like other columns?

please reply it!

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 10 Nov 2016, 01:02 PM
Hello ,

I'm afraid that there's no straightforward way to achieve the desired behavior as the row indicator I believe you're referring to is technically not a column and thus, cannot be resized at runtime.

What I can suggest, however, is to set RadGridView's RowIndicatorVisibility to False, create a new GridViewColumn as the grid's first column and define a custom CellTemplate in which to mimic the look of the row indicator. You can find the default PART_IndicatorPresenter border element in the control template of the GridViewRow control which is located in Telerik.Windows.Controls.GridView.xaml of the respective theme inside your UI for WPF installation folder under Themes.Implicit.

Please let me know whether such an approach would work for you.

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
Spreadsheet
Asked by
eunji
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or