Back to Devexpress

DataSelectorFormControl.SourceRange Property

officefileapi-devexpress-dot-spreadsheet-dot-dataselectorformcontrol.md

latest3.9 KB
Original Source

DataSelectorFormControl.SourceRange Property

Specifies the cell range associated with a form control.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
CellRange SourceRange { get; set; }
vb
Property SourceRange As CellRange

Property Value

TypeDescription
CellRange

The cell range associated with a form control.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the SourceRange property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/CodeExamples/FormControlActions.cs#L26

csharp
comboBoxControl.DropDownLines = 3;
comboBoxControl.SourceRange = workbook.Worksheets[0].Range["E2:E6"];
comboBoxControl.SelectedIndex = 1;

wpf-spreadsheetcontrol-api-part-2/CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/FormControlActions.cs#L29

csharp
comboBoxControl.DropDownLines = 3;
comboBoxControl.SourceRange = workbook.Worksheets[0].Range["E2:E6"];
comboBoxControl.SelectedIndex = 1;

spreadsheet-document-api-examples-part2/CS/SpreadsheetDocServerAPIPart2/CodeExamples/FormControlActions.cs#L29

csharp
comboBoxControl.DropDownLines = 3;
comboBoxControl.SourceRange = workbook.Worksheets[0].Range["E2:E6"];
comboBoxControl.SelectedIndex = 1;

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/CodeExamples/FormControlActions.vb#L23

vb
comboBoxControl.DropDownLines = 3
comboBoxControl.SourceRange = workbook.Worksheets(CInt((0))).Range("E2:E6")
comboBoxControl.SelectedIndex = 1

spreadsheet-document-api-examples-part2/VB/SpreadsheetDocServerAPIPart2/CodeExamples/FormControlActions.vb#L26

vb
comboBoxControl.DropDownLines = 3
comboBoxControl.SourceRange = workbook.Worksheets(0).Range("E2:E6")
comboBoxControl.SelectedIndex = 1

See Also

DataSelectorFormControl Interface

DataSelectorFormControl Members

DevExpress.Spreadsheet Namespace