BindingExtensions
Wisej.Web.Markup.BindingExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.BindingExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the Control class.
Binds a specified property of a component to a property of a data source.
TTargetProp
The type of the target property on the component.
TSource
The type of the data source.
targetProp
An expression representing the target property on the component.
A function to convert the data source value to the target property type. Default is null
.
A function to convert the target property value to the data source type. Default is null
.
Returns: TComponent. The component with the binding applied.
This method allows for complex data binding scenarios where custom parsing and formatting logic is required.
Binds a specified property of a component to a data source property with optional formatting and conversion.
TSource
The type of the data source.
A function to convert the data source value to the target property type. Default is null
.
A function to convert the target property value to the data source type. Default is null
.
Returns: TComponent. The component with the binding applied.
This method is useful for simple data binding scenarios where the target property and data source property types are compatible.
Binds a specified column of the DataGridView to a data source.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a column of the DataGridView to a specified property of the data source.
Binds a specified column of the DataGridView to a data source with a data member.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a column of the DataGridView to a specified property of the data source, using a data member.
Binds a specified column of the DataGridView to a data source using the column name.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a column of the DataGridView to a specified property of the data source using the column name.
Binds a specified column of the DataGridView to a data source with a data member using the column name.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a column of the DataGridView to a specified property of the data source, using a data member and the column name.
Binds a specified DataGridViewColumn to a data source.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a DataGridViewColumn to a specified property of the data source.
Binds a specified DataGridViewColumn to a data source with a data member.
TComponent
The type of the DataGridView component.
TSource
The type of the data source.
Optional. A function to parse cell values. Default is null
.
Optional. A function to format cell values. Default is null
.
Returns: TComponent. The DataGridView with the specified column bound to the data source.
This method binds a DataGridViewColumn to a specified property of the data source, using a data member.
Binds a data source to a specified column in a ListView.
TComponent
The type of the ListView component.
TSource
The type of the data source.
Returns: TComponent. The ListView component with the data source bound to the specified column.
This method binds a data source to a specified column in a ListView by setting the column's display property name and assigning the data source to the ListView.
Throws:
ArgumentException Thrown when the specified column name does not exist in the ListView.
Binds a data source to a specified column in a ListView with a specified data member.
TComponent
The type of the ListView component.
TSource
The type of the data source.
Returns: TComponent. The ListView component with the data source bound to the specified column and data member.
This method binds a data source to a specified column in a ListView by setting the column's display property name, assigning the data member, and then assigning the data source to the ListView.
Throws:
ArgumentException Thrown when the specified column name does not exist in the ListView.
Binds a data source to a specified column in a ListView.
TComponent
The type of the ListView component.
TSource
The type of the data source.
Returns: TComponent. The ListView component with the data source bound to the specified column.
This method binds a data source to a specified column in a ListView by setting the column's display property name and assigning the data source to the ListView.
Throws:
ArgumentNullException Thrown when the specified column is null.
Binds a data source to a specified column in a ListView with a specified data member.
TComponent
The type of the ListView component.
TSource
The type of the data source.
Returns: TComponent. The ListView component with the data source bound to the specified column and data member.
This method binds a data source to a specified column in a ListView by setting the column's display property name, assigning the data member, and then assigning the data source to the ListView.
Throws:
ArgumentNullException Thrown when the specified column is null.
formattingEnabled
updateMode
nullValue
formatString
formatProvider
parse
format
formattingEnabled
updateMode
nullValue
formatString
formatProvider
parse
format
parse
format
parse
format
parse
format
parse
format
parse
format
parse
format