I have XamGrid control on my screen. I would like it to activate first cell of AddNewRow row and enter edit mode up on receiving focus when I navigate to it.
I’ve tried this solution but it does not work:
XamGridRowsManager Manager = new XamGridRowsManager(this.localGrid); this.localGrid.EnterEditMode(Manager.AddNewRowTop);
Did you set the EditingSettings
IsOnCellActiveEditingEnabled
="True"
These are my settings:
<dg:XamGrid.AddNewRowSettings> <dg:AddNewRowSettings AllowAddNewRow="Top" IsEnterKeyEditingEnabled="True" IsF2EditingEnabled="True" IsMouseActionEditingEnabled="SingleClick" IsOnCellActiveEditingEnabled="True"/> </dg:XamGrid.AddNewRowSettings> <dg:XamGrid.ColumnChooserSettings> <dg:ColumnChooserSettings AllowHiddenColumnIndicator="True" AllowHideColumnIcon="False" /> </dg:XamGrid.ColumnChooserSettings> <dg:XamGrid.ColumnMovingSettings> <dg:ColumnMovingSettings AllowColumnMoving="Immediate" AnimationDuration="20" /> </dg:XamGrid.ColumnMovingSettings> <dg:XamGrid.GroupBySettings> <dg:GroupBySettings GroupByAreaStyle="{StaticResource GroupByStyle}" AllowGroupByArea="Top" /> </dg:XamGrid.GroupBySettings> <dg:XamGrid.RowSelectorSettings> <dg:RowSelectorSettings x:Name="rowSelectorSettings" Visibility="Visible" EnableRowNumbering="False"/> </dg:XamGrid.RowSelectorSettings> <dg:XamGrid.SelectionSettings> <dg:SelectionSettings RowSelection="Multiple" CellClickAction="SelectRow"/> </dg:XamGrid.SelectionSettings> <dg:XamGrid.ColumnResizingSettings> <dg:ColumnResizingSettings AllowCellAreaResizing="True" AllowColumnResizing="Indicator" AllowDoubleClickToSize="True" AllowMultipleColumnResize="True" /> </dg:XamGrid.ColumnResizingSettings> <dg:XamGrid.SortingSettings> <dg:SortingSettings AllowSorting="True" AllowMultipleColumnSorting="True" ShowSortIndicator="True" /> </dg:XamGrid.SortingSettings> <dg:XamGrid.FilteringSettings> <dg:FilteringSettings AllowFiltering="None" IsEnterKeyEditingEnabled="True" IsMouseActionEditingEnabled="SingleClick"/> </dg:XamGrid.FilteringSettings> <dg:XamGrid.EditingSettings> <dg:EditingSettings AllowEditing="Cell" IsEnterKeyEditingEnabled="True" IsF2EditingEnabled="True" IsMouseActionEditingEnabled="SingleClick" IsOnCellActiveEditingEnabled="True" /> </dg:XamGrid.EditingSettings>
Hi,
I’m just checking to see if you have any additional questions.
I see that Darrel suggested setting the IsOnCellActiveEditingEnabled value to true and I see that you supplied your xaml code where that was already set so I wasn’t sure if you still had any questions.
Please let me know if there is anything I can help with.