GDBG - Row in edit mode after init

Hi

This question is concerning the GridDataBoundGrid.

I have followed your KB Article on "How do I have formula cells in a GridDataBoundGrid?" which works splendid.

However, the code somehow puts the grid´s currentcell into edit mode, causing the edit-icon to appear in the row header, even the first time the grid is shown.

When the application starts, I need the grid to not be in any kind of edit mode, the top left cell should be selected - but without the edit-icon in the row header.

Can anyone please help me?


2 Replies

JJ Jisha Joy Syncfusion Team May 22, 2008 09:03 AM UTC

Hi Johan,

Thank You for your interest in Syncfusion products.

Please include the following code snippets in the GridSaveCellInfo event:

[C#]

if (this.gridDataBoundGrid1.Binder.IsAnyDirtyField())
this.gridDataBoundGrid1.Binder.EndEdit();

Please refer the modified KB sample:


http://www.syncfusion.com/support/user/uploads/CS_fb0753a.zip




Please let me know if this helps.

Regards,
Jisha



AD Administrator Syncfusion Team May 26, 2008 07:46 AM UTC

Thank you Jisha, it worked very well!

Regards,
Johan

>Hi Johan,

Thank You for your interest in Syncfusion products.

Please include the following code snippets in the GridSaveCellInfo event:

[C#]

if (this.gridDataBoundGrid1.Binder.IsAnyDirtyField())
this.gridDataBoundGrid1.Binder.EndEdit();

Please refer the modified KB sample:


http://www.syncfusion.com/support/user/uploads/CS_fb0753a.zip




Please let me know if this helps.

Regards,
Jisha




Loader.
Up arrow icon