We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

New Row

Thread ID:

Created:

Updated:

Platform:

Replies:

9863 Jan 14,2004 09:26 AM Jan 14,2004 12:14 PM Windows Forms 3
loading
Tags: GridControl
stefan_t
Asked On January 14, 2004 09:26 AM

1. How to get access programmatically to GDBGrid.Binder new row ? 2. Tell me if my thought is correct. From RowEditing event at a new row I call immediately Binder.AddNew Binder row count shows 1 plus than Currency Manager(DataView) which increased also. The previous new row of Binder is now a detached row of DataView . I do the editing and as I am leaving the row the Binder writes the data cached internally to the DataSource. How to catch the event and to set values ? Thanks

stefan_t
Replied On January 14, 2004 09:34 AM

One more , I haven''t all the fields of my DataRow as columns of GDBGrid. I set only few columns instead to set all and hide which I don''t need For this reason I call immediately the AddNew at RowEditing so to be able to set the values in Currency Manager detached row. I hope I follow the right way. thanks

stefan_t
Replied On January 14, 2004 11:54 AM

Ok, I have solved this way RowEditing ... if(e.IsAddNew) { Me.Binder.AddNew(); dv=(DataRowView)CurrManager.Current; dv["DESCRIPTION"]="Hi"; } RowLeave... dv=(DataRowView)CurrManager.Current; if RowState==DataRowState.Detached Table.ImportRow(dv.Row); Is there any other more convinient way ? Regards

Administrator [Syncfusion]
Replied On January 14, 2004 12:14 PM

I do not know of a better way. This handles things dynamically (not depending on DataColumn.DefaultValue property), and you can initialize any fields, even those not display in the grid.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;