DataUnbind Method

Causes the DataGrid to disconnect from any previously connected data source.

DataGridObject.DataUnbind()

Client support

   Newlook Smartclient

   Newlook Server

Parameters

None.

Use

If the DataGrid is not currently bound to a data source, this method does nothing. DataUnbind will stop the DataGrid from loading any further records from a previous DataBind call. Any records previously loaded remain visible in the DataGrid until another DataBind call is made, or until a Clear method call is made.

If you are wishing to remove all rows from the Datagrid then use the Clear method.

TIP!

If the DataGrid is already connected to a data source, and the DataBind method is called, this method will automatically call the DataUnbind method.

Returns

Returns a Boolean indicating the success or failure of the action.

Applies To

DataGrid control

See Also

DataBind method | Source property | Clear method


© 2004-2021 looksoftware. All rights reserved.