AxpDataGrid

AxpDataGrid.UseDataBinding Property

Set to True to disable the automatic built in data binding of the AxpDataGrid control

[Visual Basic]
Public Property UseDataBinding As Boolean
[C#]
public bool UseDataBinding {get; set;}

Property Value

Default=False

Remarks

If set to True, a call to the DataBind method must be made.

The properties on the grid that normally would be available in (and after) the grid's Load event will not be available until DataBind is called.

This can be useful in circumstances where the grid properties are set dynamically and maybe depends on other controls on the page. If resorting to default behavior (i.e. UseDataBinding=False) other controls on the page will probably load after AxpDataGrid has loaded, thus making it impossible to dynamically set grid properties.

If UseDataBinding=True, one can programmatically decide when AxpDataGrid should perform the vital DataBinding. This might f.ex. be done in the Page PreRender event . See also Sample 16 - Searching using WebControls.TextBox.

See Also

AxpDataGrid Class | Axezz.WebControls Namespace