Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
cursor flashing inside the new record
posted

Hi all,

Is anyone know how to make the cursor flashing inside the new record or the selected record?

I using XamDatagrid version 9.1. I have a grid and also a button new and edit.

those are code I using in button new:

xamDataGrid.FieldLayoutSettings.AllowAddNew = true;

(xamDataGrid.RecordManager.CurrentAddRecord as DataRecord).Cells[xamDataGrid.FieldLayouts[0].Fields[0]].IsActive = true;
(xamDataGrid.RecordManager.CurrentAddRecord as DataRecord).Cells[xamDataGrid.FieldLayouts[0].Fields[0]].IsSelected = true;
 xamDataGrid.ExecuteCommand(DataPresenterCommands.StartEditMode);

with that code, the new record added and selected, but the cursor won't flashing in it.

It also happen if I click edit button.

those are code I using in button edit :

xamDataGrid.FieldLayoutSettings.AllowEdit = true;

(xamDataGrid.ActiveRecord as DataRecord).Cells[xamDataGrid.FieldLayouts[0].Fields[0]].IsActive = true;
(xamDataGrid.ActiveRecord as DataRecord).Cells[xamDataGrid.FieldLayouts[0].Fields[0]].IsSelected = true;
 xamDataGrid.ExecuteCommand(DataPresenterCommands.StartEditMode);

with that code, the selected record is in edit mode and selected, but the cursor won't flashing in it.

I need to click on the record first to make to cursor  flashing inside the record.

Is there anyone know how to solved this?

Thanks before,

Vera