smartDBforms.NET API Reference

DataBindItem Members

DataBindItem overview

Public Instance Properties

AdHocProperty1 Gets the AdHocProperty1 value of of the containing BaseSmartDBControl. If nothing is specified Empty is returned.
AdHocProperty2 Gets the AdHocProperty2 value of of the containing BaseSmartDBControl. If nothing is specified Empty is returned.
AdHocProperty3 Gets the AdHocProperty3 value of of the containing BaseSmartDBControl. If nothing is specified Empty is returned.
AllowDBNull Gets the FieldSchema.AllowDBNull value.
Caption Gets the FieldSchema.Caption value.
DataType Gets the FieldSchema.DataType value.
Description Gets the FieldSchema.Description value.
FieldName Gets the Field value of the containing BaseSmartDBControl.
FKAllowsNULLValue Gets a value that indicates if the foreign key relation allows NULL value. A foreign key relation allows NULL value, if all the columns that participate in it allow NULL value.
FKCaption Gets the FieldSchema.FKCaption value.
FKDescription Gets the FieldSchema.FKDescription value.
FKIsValueNULL Gets a value that indicates if the current values of the foreign key columns are NULL.
FKNULLValue Gets a string that represents NULL values for all columns that participate in the foreign key.
FKNULLValueCaption Gets the FieldSchema.FKNULLValueCaption value.
FKParentTable Gets the foreign key parent table. The table is used to show to the user all the foreign key values he can select from.
FKValue Gets one string in which the foreign-key value is encoded. In the case of a multi-column foreign key the string contains the values for all columns.
FKValueCaption Gets the caption text for the current FKValue
FKValueDescription Gets the description text for the current FKValue
IsKey Gets the FieldSchema.IsKey value.
IsReadOnly Gets the FieldSchema.IsReadOnly value.
Mode Gets the CurrentMode value of of the containing SmartDBView.
NumericPrecision Gets the FieldSchema.NumericPrecision value.
NumericScale Gets the FieldSchema.NumericScale value.
PrimaryKeyValues Gets the PrimaryKeyValues value of of the containing SmartDBView.
Schema The meta information for the current database column.
Size Gets the FieldSchema.Size value.
StartTabIndex Gets the ChildrenTabIndex value of of the containing BaseSmartDBControl. The tab index base for the controls in the template. The first control should have tab index StartTabIndex, the second StartTabIndex+1 ... The default value is 0.
ValidationGroup Gets the ValidationGroup value of of the containing BaseSmartDBControl. If the template has validator control bind their ValidationGroup property to this value. For example:
<asp:RequiredFieldValidator 
                ValidationGroup='<%# Eval("ValidationGroup") %>'>
            </asp:RequiredFieldValidator>
Value Gets the database field's value. An object with the proper type is returned according to DataType. The value is never null, but if the database value is NULL the returned value will be Value If you do not want Value to be returned, then use ValueNonNull. You can use this property in two-way databinding expression. For example: Text='<%# Bind("Value") %>'.
ValueNonNull Gets the database field's value. An object with the proper type is returned according to DataType. The value is never null. If the database value is NULL then a default value value will be returned. If you need Value to be returned, then use Value. You can use this property in two-way databinding expression. For example: Text='<%# Bind("ValueNonNull")%>'.

Public Instance Methods

AdHocProperty Gets the value of the property with the specified name from the AdHocProperties collection. If the property does not exists null(Nothing) is returned.
CreateDbConnection Creates a database connection according to the settings of the referenced SmartDataSource. This function works only if the parent SmartDBView uses SmartDataSource as a data source. You must call Open before using the connection and Close at the end in order to free the connection resources.

See Also

DataBindItem Class | Adillis.SmartDBForms Namespace