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
195
WinGrid, how to keep focus on the add-row after a row been added?
posted

Have an issue where the user want to add several rows in a sequence, without loosing focus on the built in add-row feature.

(Add a row --> Return focus to the first cell in the build in add row, add another row, and so on....)

Tried the following code, after a row has been added...

ultraGrid.ActiveCell = ultraGrid.Rows.TemplateAddRow.Cells[0];

ultraGrid.PerformAction(UltraGridAction.EnterEditMode);

... the built in add-row get focused, BUT before I receive the built in Data Error "Unable to update the row: Column (the first column) does not allow nulls".

(Have a datatable as datasource)

Any idea of how to focus the built in Add-row, or is there a way to get rid of the bult in validation temporarily?

M Segerby

 

 

 

 

 

Parents Reply Children
No Data