Home Forums WPF controls Xceed DataGrid for WPF Modify Width of Row Selection Column

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26655 |

    Based on the following solution to supply the column index in the Row Selector Pane is there a way to modify the Width of that column such that the content fits?

    <Grid xmlns:xcdg=”http://schemas.xceed.com/wpf/xaml/datagrid”&gt;
    <Grid.Resources>
    <xcdg:DataGridCollectionViewSource x:Key=”cvs_orders”
    Source=”{Binding Source={x:Static Application.Current},
    Path=Orders}” />

    <Style x:Key=”itemIndexSelectorStyle”
    TargetType=”{x:Type xcdg:RowSelector}”>
    <Setter Property=”Content”
    Value=”{Binding RelativeSource={RelativeSource Self}, Path=ItemIndex}”/>
    </Style>
    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <Setter Property=”xcdg:RowSelectorPane.RowSelectorStyle”
    Value=”{StaticResource itemIndexSelectorStyle}” />
    </Style>
    </Grid.Resources>

    <xcdg:DataGridControl x:Name=”OrdersGrid”
    ItemsSource=”{Binding Source={StaticResource cvs_orders}}” />
    </Grid>

    Any help would be appreciated.

    Imported from legacy forums. Posted by Rob (had 3133 views)

    User (Old forums)
    Member
    Post count: 23064

    Hey Rob,

      I would like to hear from you, if have got the solution for this [:)]

    Thanks in advance

    Abhi

     

    Imported from legacy forums. Posted by Abhi (had 535 views)

    Xceed Support
    Member
    Post count: 5658

    This example demonstrates how to change the width of the RowSelectorPane.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 537 views)

    User (Old forums)
    Member
    Post count: 23064

    I have to increase the width of the RowSelectorPane. 

    When I try to use the example you mentioned, it gives error for the following style(The tag ‘TableViewHeaderFooterPanel’ does not exist in XML namespace ‘clr-namespace:Xceed.Wpf.DataGrid;assembly=Xceed.Wpf.DataGrid’):

     <xcdg:TableViewHeaderFooterPanel xcdg:DataGridControl.IsFixedHeadersHost=”True”

    Orientation=”Vertical”

    HorizontalAlignment=”Left”>

    </xcdg:TableViewHeaderFooterPanel>

    This is how i have mapped the namespace:

    xmlns

    :xcdg=http://schemas.xceed.com/wpf/xaml/datagrid

    If I remove the TableViewHeaderFooterPanel and TableViewHeaderHeaderPanel, it does increase the width of the RowSelector pane but the column headers are no longer visible.

    Is there something else I need to do?

    Imported from legacy forums. Posted by A (had 616 views)

    User (Old forums)
    Member
    Post count: 23064

    I too have run into this issue. Please help 

    TableViewHeaderFooterPanel

     does not exist.

    Imported from legacy forums. Posted by justin (had 1027 views)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.