An UltraDataBand defines columns and child bands.
Use the
You can also use the UltraDataRowsCollection's
Note that this method clears the columns and the child bands collections.
You can use the Move method to change the order of bands in a bands collection. Note that this method is not supported on the root band since the root band doesn't belong to any bands collection as it never has any siblings.
The UltraDataColumn object also exposes
The Key of a band is also used as the the list name of the row collection associated with the band. ITypedList's GetListName implementation returns this value. The keys have to be unique across all the bands.
Note that this property only controls whether the controls bound to this
data source are allowed to add new rows. It does not control whether you can add
rows to the data source directly to the
Note that this property only controls whether the controls bound to this
data source are allowed to add new rows. It does not control whether you can add
rows to the data source directly to the
Setting ReadOnly to true will prevent the user from modifying cell values as well as from adding and removing of rows regardless of
You can use the returned columns collection to add one or more columns.
Note: To add a field that represents a child band (child rows) add a
an UltraDataChildBand to the
You can use the ChildBands collection to add one or more
child bands to a band. The root band can be accessed using the
UltraDataBandsCollection class represents a collection of bands.
You can define one or more columns using the
You can use the Move method to change the order of columns in a columns collection.
The UltraDataBand object also exposes
The propertyDescriptor associated with this column will use the value of this property as its name. In other words the bound controls will use this value as the name of the column.
Setting ReadOnly to true on an UltraDataColumn object will cause the associated PropertyDescriptor's IsReadOnly implementation to return true.
The Index property returns the location of this column in the
Specifies whether the user is allowed to enter null values in the cells of this column. More precisely, setting this property to False will cause the associated property descriptor to not accept null and DBNull values. You can still set null values through code regardless of this property setting.
UltraDataColumnsCollection class represents a collection of columns.
You can add one or more rows to a row collection using the
Sets the cell value associated with the specified column. This overload does not raise the
Sets the cell value associated with the specified column. This overload does not raise the
Sets the cell value associated with the specified column. This overload does not raise the
Sets the cell value associated with the specified column. This overload does not raise the
Sets the cell value associated with the specified column. This overload does not raise the
Sets the cell value associated with the specified column. This overload does not raise the
The row's band must have a child band defined with the specified key. The
The row's band must have child bands defined. The
The specified band must be a child band of the band associated with this row.
The
You can use the UltraDataRow's
You can use the UltraDataRow's
You can use the UltraDataRow's
You can use the UltraDataRow's
An UltraDataRowsCollection collection contains one or more
You can add one or more rows using the
Add method creates a new row and adds it to the collection. If raiseAddEvents argument is true,
Add method creates a new row and adds it to the collection. If raiseAddEvents argument is true,
Add method creates a new row and adds it to the collection. If raiseAddEvents argument is true,
Add method creates a new row and adds it to the collection. If raiseAddEvents argument is true,
Insert method creates a new row and adds it to the collection at the specified location. If raiseAddEvents argument is true,
Insert method creates a new row and adds it to the collection at the specified location. If raiseAddEvents argument is true,
Insert method creates a new row and adds it to the collection at the specified location. If raiseAddEvents argument is true,
Insert method creates a new row and adds it to the collection at the specified location. If raiseAddEvents argument is true,
Remove method removes the specified row from the collection. If raiseDeleteEvents argument is true,
RemoveAt method removes the row at the specified location from the collection. If raiseDeleteEvents argument is true,
Clear method removes all the rows from the collection. This has the same effect as setting the count to 0 by calling
Note: SetCount method does not raise add (RowAdding, RowAdded) or delete (RowDeleting, RowDeleted) events when it does add or remove items.
Note: SetCount method does not raise add (RowAdding, RowAdded) or delete (RowDeleting, RowDeleted) events when it does add or remove items.
You can use the UltraDataRowsCollection's
The Count property returns the number of rows contained in this row collection.
You can add one or more rows using the
Note that calling ResetCachedValues clears the internal cache of data from the DataSource, but it does not notify bound controls. This means that if there is a control bound to the UltraDataSource (an UltraWinGrid, for example) that is currently displaying data, the control will not update it's display to reflect the new data unless something occurs to make it re-request the data. To force this to occur immediately, call the
This method along with the
Note: If the data source is bound to an UltraGrid, as expected, the UltraGrid will not fire InitializeRow event for the rows you modify since it will not receive any ItemChanged notifications.
This method along with the
Note: If the data source is bound to an UltraGrid, as expected, the UltraGrid will not fire InitializeRow event for the rows you modify since it will not receive any ItemChanged notifications.
This method along with the
The LoadFromBinary method is used in conjunction with the
The LoadFromBinary method is used in conjunction with the
The LoadFromBinary method is used in conjunction with the
The LoadFromBinary method is used in conjunction with the
The LoadFromXml method is used in conjunction with the
The LoadFromXml method is used in conjunction with the
The LoadFromXml method is used in conjunction with the
The LoadFromXml method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
The SaveAsBinary method is used in conjunction with the
CellDataRequested event is fired when a control bound to the UltraDataSource requests value for a cell and UltraDataSource doesn't have the cell value. Once the value is provided, UltraDataSource will cache it and this event will not be fired for the cell next time. You can prevent the value from being cached by setting the
You can also provide cell values without having to hook into this event by using
CellDataUpdating is fired before a control bound to this UltraDataSource attempts to update a cell's value. You can cancel the update by setting Cancel to true off the
By default the UltraDataSource will cache the new value of the cell. If you are managing the data then you may want to prevent the UltraDataSource from caching the value by setting
Note that this event is not be fired when you set the value in code.
See
InitializeDataRow event is fired for every row when it's created.
The InitializeRowsCollection event is fired for every
RowBeginEdit event is fired when BeginEdit on the
NOTE: multiple rows can be in edit mode at the same time. As a result RowBeginEdit and
RowEndEdit event is fired when EndEdit on the
NOTE: multiple rows can be in edit mode at the same time. As a result
RowCancelEdit event is fired when CancelEdit on the
NOTE: multiple rows can be in edit mode at the same time. As a result
The Band property returns the root band. To access the child bands use the
Setting AllowAdd to true will prevent the controls bound to this data source from adding rows to it.
Setting AllowDelete to true will prevent the controls bound to this data source from deleting rows from it.
Setting ReadOnly to true makes the data source read-only so that the controls bound to this data source can not make any modifications. Setting it to true will prevent cell content modifications as well as adding and deleting of rows regardless of the
The DataSourceEventManager gives you a high degree of control over how the component invokes event procedures. You can use it to selectively enable and disable event procedures depending on the context of your application. You can also use the event manager to return information about the state of the component's events.
The event manager's methods are used to determine the enabled state of an event (