The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

WorksheetDataBindingCollection.GetDataBindings(Range) Method

Obtains data bindings for the cells in the specified range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

IList<WorksheetDataBinding> GetDataBindings(
    Range range
)
Function GetDataBindings(
    range As Range
) As IList(Of WorksheetDataBinding)
IList<WorksheetDataBinding> GetDataBindings(
    Range range
)
Function GetDataBindings(
    range As Range
) As IList(Of WorksheetDataBinding)

Parameters

Name Type Description
range Range

A Range of cells in a worksheet.

Parameters

Name Type Description
range Range

A Range of cells in a worksheet.

Returns

Type Description
IList<WorksheetDataBinding>

A IList<T><WorksheetDataBinding,> generic list .

Returns

Type Description
IList<WorksheetDataBinding>

A IList<T><WorksheetDataBinding,> generic list .

Remarks

To get the data binding for a particular cell, use the WorksheetDataBindingCollection.GetDataBinding method.

Examples

Worksheet sheet = spreadsheetControl1.Document.Worksheets.ActiveWorksheet;
var bindings = sheet.DataBindings.GetDataBindings(sheet.Selection);
string s = "No data bindings found";
if (bindings.Count != 0) { 
      s = "The selected range contains the following data bindings:\r\n";
foreach (WorksheetDataBinding binding in bindings)
    s += String.Format("Binding {0}\r\n", binding.Range);
}
MessageBox.Show(s);
See Also