How to set row height in extended datagrid?

Dec 10, 2013 at 1:11 PM
How to set row height in extended datagrid?
Also, how can I display "yes/no" instead of checkbox for Boolean value column bound to grid?
Coordinator
Dec 10, 2013 at 2:01 PM
Hi,

Use RowHeight property in the grid.
Use converter in Text or Content and convert boolean value to Yes or No.
If you didnt get my point let me know.
Dec 10, 2013 at 2:34 PM
Hi,
Thanks for reply. But I could not find "RowHeight" property in extended wpf datagrid control. I know it is there in toolkit version of datagrid. But I can't find it here in this extended wpf datagrid. Please guide me if it exists.
Coordinator
Dec 10, 2013 at 3:11 PM

Hi,

Toolkit datagrid is its base class... same property should be there.
I am reaching home in 1 hr let me know if you found it?

Dec 10, 2013 at 3:26 PM
Hi,

No it does not exist. I checked it for xcdg:DataGridControl . Here is my code snippet.

<Window x:Class="Frames.Masters.TaxHeadWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey"
    xmlns:local="clr-namespace:Frames"
    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
    xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d">
<xcdg:DataGridControl x:Name="dgTaxHead" Grid.Row="1" AutoCreateColumns="False"
         ReadOnly="True" Width="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
         Height="Auto" AllowDrop="False" IsDeleteCommandEnabled="False" IsManipulationEnabled="False"
         >            
        <xcdg:DataGridControl.Columns>                
            <xcdg:Column FieldName="LmDate" Title="Last Modified Date">
            </xcdg:Column>
            <xcdg:Column FieldName="Active" Title="Active">
            </xcdg:Column>
        </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>
</Window>
Coordinator
Dec 10, 2013 at 4:03 PM

You are using wrong grid use ExtendedDatagrid

Coordinator
Dec 10, 2013 at 4:24 PM

You got it?

Dec 11, 2013 at 2:46 PM
No dear. I can't seem to find out "ExtendedDataGrid" you are talking about in http://schemas.xceed.com/wpf/xaml/toolkit or in http://schemas.xceed.com/wpf/xaml/datagrid, which I have referenced in the code as shown above. Please help. Does it exist in any other namespace. Please tell me where I am going wrong?
Coordinator
Dec 11, 2013 at 2:55 PM
Hi,

Here is the snippet, why are you using xceed here?
<UserControl x:Class="TestClient.UserControls.AutoFilterPlacerControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ExtendedGridControl="clr-namespace:ExtendedGrid.ExtendedGridControl;assembly=ExtendedGrid"
             xmlns:ExtendedColumn="clr-namespace:ExtendedGrid.ExtendedColumn;assembly=ExtendedGrid"
             xmlns:Controls="clr-namespace:ExtendedGrid.Microsoft.Windows.Controls;assembly=ExtendedGrid"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <!--Attach Default Fluent Control's Theme-->
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            </ResourceDictionary.MergedDictionaries>
           

        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <ExtendedGridControl:ExtendedDataGrid x:Name="grid" ItemsSource="{Binding SourceTable}" AutoGenerateColumns="False" HideColumnChooser="True" GroupByControlVisibility="Visible"
                          CanUserAddRows="False" OnlyTwoWaySorting="True">
            <Controls:DataGrid.Columns>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Game Name" AllowAutoFilter="True" Width="100"
                                           Binding="{Binding GameName}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Creator" AllowAutoFilter="True" Width="100"
                                           Binding="{Binding Creator}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Owner" Width="100"
                                           Binding="{Binding Owner}" AllowAutoFilter="True"/>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Publisher"
                                            AllowAutoFilter="False"
                                           CanUserSort="False" Width="*"/>

            </Controls:DataGrid.Columns>
            <Controls:DataGrid.GroupStyle>
              
            </Controls:DataGrid.GroupStyle>
        </ExtendedGridControl:ExtendedDataGrid>
        <!--<ExtendedGridControl:ExtendedDataGrid x:Name="grid"  AutoGenerateColumns="True" HideColumnChooser="True" GroupByControlVisibility="Visible">
            
        </ExtendedGridControl:ExtendedDataGrid>-->

    </Grid>
</UserControl>
Please download the source code over there you will find many examples.

Regards,
bpoojary
Dec 11, 2013 at 3:27 PM
Thanks a lot dear. But please tell me where can I find the assemblies required for using ExtendedGrid control as shown by you. When I downloaded from https://wpfextendeddatagrid.codeplex.com, I got this then I referenced as shown in my code above and it was containing this xceed assembly only. So I used it. Where can I find assembly shown by you? Is it part of WPF Toolkit 4.0 or Extended WPF Toolkit? Please help.
Coordinator
Dec 11, 2013 at 3:38 PM
Hi,

Got o https://wpfextendeddatagrid.codeplex.com/releases/view/114425

Download 2.0.0.11 dlls.

Use

ExtendedGrid.dll

Or if you want full project go to source code tab and download it.

Regards,
bpoojary
Dec 11, 2013 at 3:47 PM
Hi Dear,

Yes I found that dll now. Thanks. My only question is now is what would be difference if I use xceed. I guess it has more features. I am talking only about community edition and not paid one. So, do you think using xceed will be more beneficial or is it better choice than ExtendedGrid.dll?
Coordinator
Dec 11, 2013 at 3:52 PM
Xceed is paid
ExtendedDatagrid is free
Your choice
Dec 11, 2013 at 3:53 PM
Ok. Thanks a lot.