WPF MVVM DevExpress Memoedit和Combobox控件在放入GridControl时不会打开Popup

时间:2016-02-22 04:19:12

标签: wpf xaml mvvm devexpress-wpf

我视图中的GridControl有一个Memoedit控件和一个组合框控件。以下是我的DataGrid的XAML代码:

<dxg:GridControl x:Name="gridFloorplans" Grid.Column="1" Grid.Row="1" AutoGenerateColumns="None" 
            ItemsSource="{Binding FloorplanList.Result.View}"
            SelectedItems="{Binding Path=SelectedFloorplan,Mode=TwoWay}"
            dx:ThemeManager.Theme="Default" SelectionMode="Row">
            <dxg:GridControl.View>
                <dxg:TableView AllowGrouping="False" ShowGroupPanel="False" AllowEditing="False"  ShowDataNavigator="True" DataNavigatorButtons="Navigation" />
            </dxg:GridControl.View>
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="Id" />
                <dxg:GridColumn FieldName="Name" Header="Floorplan Name" Fixed="Left" />
                <dxg:GridColumn FieldName="Season"  Fixed="Left" />
                <dxg:GridColumn FieldName="Version"  Fixed="Left" />
                <dxg:GridColumn FieldName="IssueDate" />
                <dxg:GridColumn FieldName="LiveDate"  />
                <dxg:GridColumn FieldName="ExpirationDate" />
                <dxg:GridColumn FieldName="Notes" Header="Notes" >
                <!-- Need to fill this in with a text popup icon -->
                    <dxg:GridColumn.EditSettings>
                        <dxe:MemoEditSettings/>
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="Status">
                <dxg:GridColumn.CellTemplate>
                        <DataTemplate>
                    <dxe:ComboBoxEdit ItemsSource="{Binding SourceStatusList}">                            
                        </dxe:ComboBoxEdit>
                        </DataTemplate>
                    </dxg:GridColumn.CellTemplate>                    
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="FloorplanSpecialist" />
                <dxg:GridColumn FieldName="LayoutFileName" />
                <dxg:GridColumn FieldName="IsVirtualStore" Header="Virtual Store" />
                <dxg:GridColumn FieldName="IsRemodelStore" Header="Project" />
                <dxg:GridColumn FieldName="Zone" Header="FP Zone" />
                <dxg:GridColumn FieldName="ILCStatus" />
                <!--<dxg:GridColumn FieldName="IsFloorplanIdStore" Header="FP Id Store" />-->
                <dxg:GridColumn FieldName="MerchAreaKey" />
                <dxg:GridColumn FieldName="DepartmentKey" />
                <dxg:GridColumn FieldName="MerchArea" />
                <dxg:GridColumn FieldName="Department" />

            </dxg:GridControl.Columns>            
        </dxg:GridControl>

单击时,网格内的MemoEdit控件和Combobox控件未打开。我是否应该添加任何其他标签,以便在单击单元格时打开控件?

1 个答案:

答案 0 :(得分:0)

我为GridControl中嵌入了这些控件的列添加了AllowEditing =“True”属性。