Home Forums WPF controls Xceed DataGrid for WPF I can’t grouping the column in DataGrid (WPF)

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

    Dim group As New ProcessGroupDescription(“Process”)
    group.StringComparison = StringComparison.Ordinal
    Me.gridMachine.Items.GroupDescriptions.Add(group)
    ————————————————-

    I use this code.

    Imported from legacy forums. Posted by Pongsak (had 2977 views)

    User (Old forums)
    Member
    Post count: 23064

    <Window x:Class=”winMachineSetup”
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    xmlns:xcdg=”http://schemas.xceed.com/wpf/xaml/datagrid&#8221;
    xmlns:compModel=”clr-namespace:System.ComponentModel;assembly=WindowsBase”
    Title=”Machine Setup Screen” Height=”600″ Width=”800″>

    <Grid>
    <DockPanel>
    <DockPanel DockPanel.Dock=”Bottom” Height=”250″ VerticalAlignment=”Bottom”>
    <DockPanel>
    <DockPanel DockPanel.Dock=”Top” Height=”50″>
    <Button>Toolbar(2)</Button>
    </DockPanel>
    <DockPanel DockPanel.Dock=”Bottom”>
    <xcdg:DataGridControl x:Name=”gridMachineProp”
    CellEditorDisplayConditions=”None”
    EditTriggers=”None”
    ReadOnly=”False”>
    <xcdg:DataGridControl.View>
    <!– In this sample, you can define this resource to specify the default
    theme this DataGridControl will be in. This is not mandatory, so we
    use a DynamicResource to silently ignore its absence. –>
    <xcdg:TableView Theme=”{DynamicResource defaultTheme}”/>
    </xcdg:DataGridControl.View>

    <xcdg:DataGridControl.Columns>
    <xcdg:Column FieldName=”Name”
    Title=”Name”
    IsMainColumn=”True”
    Width=”200″/>
    <xcdg:Column FieldName=”DefaultValue”
    Title=”Default Value”
    Width=”100″/>
    <xcdg:Column FieldName=”Comment”
    Title=”Comment”
    Width=”220″/>
    <!– The other columns will be added after these ones and will have default
    appearance and behavior when they are automatically added upon loading. –>
    </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>
    </DockPanel>
    </DockPanel>
    </DockPanel>

    <DockPanel DockPanel.Dock=”Top”>
    <DockPanel>
    <DockPanel DockPanel.Dock=”Top” Height=”50″>
    <Button>Toolbar(1)</Button>
    </DockPanel>
    <DockPanel DockPanel.Dock=”Bottom”>
    <xcdg:DataGridControl x:Name=”gridMachine”
    CellEditorDisplayConditions=”None”
    EditTriggers=”None”
    ReadOnly=”False”>
    <xcdg:DataGridControl.View>
    <!– In this sample, you can define this resource to specify the default
    theme this DataGridControl will be in. This is not mandatory, so we
    use a DynamicResource to silently ignore its absence. –>
    <xcdg:TableView Theme=”{DynamicResource defaultTheme}”/>
    </xcdg:DataGridControl.View>

    <xcdg:DataGridControl.Columns>
    <xcdg:Column FieldName=”ID”
    Title=”ID”
    Width=”20″/>
    <xcdg:Column FieldName=”Model”
    Title=”Model”
    IsMainColumn=”True”
    Width=”200″/>
    <xcdg:Column FieldName=”Process”
    Title=”Process”
    Width=”100″/>
    <xcdg:Column FieldName=”Make”
    Title=”Make”
    Width=”100″/>
    <xcdg:Column FieldName=”QTY”
    Title=”QTY”
    Width=”100″/>
    <!– The other columns will be added after these ones and will have default
    appearance and behavior when they are automatically added upon loading. –>
    </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>
    </DockPanel>
    </DockPanel>
    </DockPanel>
    </DockPanel>
    </Grid>
    </Window>

    Imported from legacy forums. Posted by Pongsak (had 383 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Before we begin to check-out this issue, we will need some more information; notably:

    1- Are you receiving any errors?
    2- What behavior are you seeing that you consider it “not working”?
    3- Have you tried the grouping examples in the documentation? (<a href=”http://doc.xceedsoft.com/products/XceedWpfDataGrid/Grouping%20Data.html”>Grouping Data</a>)
    4- Are you using the latest version of the component? (<a href=”http://xceed.com/pages/TopMenu/Downloads/Updates.aspx?Lang=EN-CA”>Update Center</a>)

    It is important to give us as much information as you can as well as test multiple scenarios and the examples/samples that are provided with the product to help use pinpoint the exact probably.

    Thank you for your cooperation.

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

    User (Old forums)
    Member
    Post count: 23064

    ok thanks for your help 🙂

    for now I can find out the problem 🙂

    Imported from legacy forums. Posted by Pongsak (had 4044 views)

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