Causes the DataGrid to disconnect from any previously connected data source.
DataGridObject.DataUnbind()
Newlook Smartclient
Newlook Server
None.
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.
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 a Boolean indicating the success or failure of the action.
The following example unbinds the datagrid from it's source and removes all data rows. VBSCRIPTSub UnbindGrid()
End Sub
JSCRIPTfunction Unbind() { App.ActiveForm.grdAttachmentsList.DataUnbind(); App.ActiveForm.grdAttachmentsList.Clear(); } |
DataBind method | Source property | Clear method
© 2004-2021 looksoftware. All rights reserved.