ST
stefan_t
January 14, 2004 02:34 PM UTC
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
ST
stefan_t
January 14, 2004 04:54 PM UTC
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
AD
Administrator
Syncfusion Team
January 14, 2004 05:14 PM UTC
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.