CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2011
    Location
    .NET 3.5
    Posts
    40

    Get selected checkboxes rows in a xamDataGrid

    I am using .Net 3.5.

    I have a xamDataGrid2 which is dynamically populated using a DataTable. The DataTable has a column called "Select" which is of bool type and value is 0 for all the rows.

    The thing I want is when the user check on the checkboxes of some rows and click the "Add" button, the selected rows will be passed to another xamDataGrid1.

    Code:
                    <igDP:XamDataGrid x:Name="xamDataGrid2" Visibility="Hidden" BindToSampleData="False" Theme="Generic" BorderThickness="0,0,0,0" AutoFit="False" igThemes:ResourceWasher.IsExcludedFromWash="False" CellContainerGenerationMode="Recycle" Panel.ZIndex="0" ScrollingMode="Immediate" Margin="-2,160.84,13,115" >
                        <igDP:XamDataGrid.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF858585" Offset="1" />
                                <GradientStop Color="#FFFFFFFF" Offset="0" />
                            </LinearGradientBrush>
                        </igDP:XamDataGrid.Background>
                        <igDP:XamDataGrid.FieldSettings>
                            <igDP:FieldSettings AllowRecordFiltering="True" SummaryDisplayArea="BottomFixed" SummaryUIType="MultiSelect" AllowSummaries="True" LabelTextAlignment="Left" />
                        </igDP:XamDataGrid.FieldSettings>
    
                        <igDP:XamDataGrid.FieldLayoutSettings>
                            <igDP:FieldLayoutSettings HighlightAlternateRecords="True" AllowAddNew="False" AllowDelete="False" AddNewRecordLocation="OnTopFixed" AutoGenerateFields="True" AllowFieldMoving="WithinLogicalRow" AllowRecordFixing="Top" FixedFieldUIType="Default" HeaderPrefixAreaDisplayMode="FieldChooserButton" AllowClipboardOperations="Copy" CopyFieldLabelsToClipboard="True" />
                        </igDP:XamDataGrid.FieldLayoutSettings>
    
                        <igDP:XamDataGrid.FieldLayouts>
                            <igDP:FieldLayout>
                                <igDP:Field Name="Select" Label="Select">
                                    <igDP:Field.Settings>
                                        <igDP:FieldSettings />
                                    </igDP:Field.Settings>
                                </igDP:Field>
                                <igDP:Field Name="ItemID" Label="Item ID">
                                    <igDP:Field.Settings>
                                        <igDP:FieldSettings AllowEdit="False" />
                                    </igDP:Field.Settings>
                                </igDP:Field>
                                <igDP:Field Name="ItemCode" Label="Item Code">
                                    <igDP:Field.Settings>
                                        <igDP:FieldSettings AllowEdit="False" />
                                    </igDP:Field.Settings>
                                </igDP:Field>
                            </igDP:FieldLayout>
                        </igDP:XamDataGrid.FieldLayouts>
                    </igDP:XamDataGrid>
    Last edited by tiestoycc; March 3rd, 2013 at 11:06 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured