Hi,
i have call dataGridControl.BringIntoView() after add new row to datagrid
now call
Xceed.Wpf.DataGrid.DataRow row = gvTrnDtlOUT.GetContainerFromItem(gvTrnDtlOUT.CurrentItem) as Xceed.Wpf.DataGrid.DataRow;
if (row != null)
{
Xceed.Wpf.DataGrid.Cell cell = row.Cells[0];
if (cell != null)
{
cell.BeginEdit();
}
}
but still focus not set to first column of newly added row of grid.
Sir Please Explain With example i m very new to xceed.
My code Snipest is here afetr add new row to datatable which is binded to grid so one row added to grid accordingly:
if
(e.Key == Key.Down && (MainPage.mainPage.currentMode == CurrentMode.EditMode || MainPage.mainPage.currentMode == CurrentMode.NewRecordMode))
{
gvTrnDtlOUT.BringIntoView();
Xceed.Wpf.DataGrid.
DataRow row = gvTrnDtlOUT.GetContainerFromItem(gvTrnDtlOUT.CurrentItem) as Xceed.Wpf.DataGrid.DataRow;
if (row != null)
{
Xceed.Wpf.DataGrid.
Cell cell = row.Cells[0];
if (cell != null)
{
cell.BeginEdit();
}
}
}
Thanks
Yagnesh Kachhadia