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

Rows Numbers

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Avi Avni
Top achievements
Rank 1
Avi Avni asked on 04 Jul 2010, 10:52 AM

Hi

Is there property for the rows number (IsRowsNumbersEnable) or I need to build it myself like in the Sample?

Best regards

Ehud

1 Answer, 1 is accepted

Sort by
0
Accepted
Ваня
Top achievements
Rank 1
answered on 04 Jul 2010, 12:42 PM
Hi,

The sample included in demos displays rows numbers using a customColumn,that derives from GridViewColumn,this functionality is not built-in.
For example if you do not need this custom column to be always visible,or whatever you need you should implement it on your own.
You can easy manipulate  the visibility for that particular column via a checkbox outside of the grid in this way:

        <CheckBox Content="Enable Row Number Column" IsChecked="{Binding IsVisible,ElementName=custRow}"...../>


Tags
GridView
Asked by
Avi Avni
Top achievements
Rank 1
Answers by
Ваня
Top achievements
Rank 1
Share this question
or