S2Form is the WindowsForm that binds Automatically the PONO(Plain Old .NET Object) object.
When Set the PONO object to DataSource property, S2Form Binds that to the controls on the form.
S2Form Updates the object's value if input to control. And、Using DataSource property,
S2Form provides updated value of control through the PONO object.
controlName means target control's name. controlProperty means target control's property.
propertyName meas PONO object's property name. formattingEnabled is true when setting formatString.
updateMode means the updated timing. nullValue set to control when PONO value is DBNull.
formatString means the format string.
ControlAttribute has priority over the PONO property on binding to controls.
The default reflection timing from control to the PONO object is DataSourceUpdateMode#OnValidation.
Control's value will reflects immidately to object as below.
Now, We check DataGridView And SPREAD 2.5J Control.
To bind object to Grid-typed control, PONO has property that is IList, Generics.IList, Array,
DataTable, IEnumurable, and Generics.IEnumurable type. This property binds to control using
Control Attribute. Grid-typed control uses generally DataSource property to bind.
Grid-typed control is set separately collection property inclued PONO object.
This auto-binding is not functioned.
Changing row size happens at some grid-type control. And, generating columns happens at some
grid-type control.
Adding Row
Binding data prevents using the method of grid control to add row.
So, Insert data to the control by S2Form#AddRow.
Name
Description
AddRow(propertyName, data, row)
propertyName means target PONO object's property name. data means the inserted data.
row means the inserted row number Returned value is inserted row's count.
Deleting row
As insertion of row, binding data prevents deleting row by using grid control's method.
So, Insert data to the control by S2Form#DeleteRow.
if delete multiple rows, use S2Form#DeleteRows.
Name
Description
DeleteRow(propertyName, row)
propertyName means target PONO object's property name.
row means Deleting row number. Returned value is delete row's count.
DeleteRows(propertyName, startRow, endRow)
propertyName means target PONO object's property name. startRow means deleting start row number.
endRow means deleting end row number. Returned value is delete row's count.
Moving row
Binding data prevents moving row using control's method.So, Use S2Form#MoveUpRow to move up one row.
To move down one row, S2Form#MoveDownRow.
Name
Description
MoveUpRow(propertyName, row)
propertyName means target PONO object's property name.
row means moving row number 。
MoveDownRow(propertyName, row)
propertyName means target PONO object's property name.
row means moving row number 。