Class SpreadsheetComboBoxCellRenderer
Represents a class which holds the cell renderer that displays
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Spreadsheet.CellRenderer
Assembly: Syncfusion.SfSpreadsheet.UWP.dll
Syntax
public class SpreadsheetComboBoxCellRenderer : SpreadsheetVirtualizingCellRendererBase<TextBlock, SfComboBox>, ISpreadsheetCellRenderer, IDisposable
Constructors
SpreadsheetComboBoxCellRenderer()
Initializes a new instance of the SpreadsheetComboBoxCellRenderer class.
Declaration
public SpreadsheetComboBoxCellRenderer()
Methods
GetControlValue()
Invoked to get the control value of the current cell .
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | The value of the currently selected item. |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
Windows.UI.Xaml.RoutedEventArgs | e |
Overrides
OnInitializeDisplayElement(RowColumnIndex, TextBlock, SpreadsheetColumn)
Invoked when display element is initialized on the cell.
Declaration
protected override void OnInitializeDisplayElement(RowColumnIndex rowColumnIndex, TextBlock uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | Coordinates of a cell. |
Windows.UI.Xaml.Controls.TextBlock | uiElement | An instance of |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnInitializeEditElement(RowColumnIndex, SfComboBox, SpreadsheetColumn)
Invoked when the edit element of combobox is initialized on the cell.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, SfComboBox uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | Coordinates of a cell. |
SfComboBox | uiElement | An instance of |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnSaveChanges()
Save the modified cell value to the given range.
Declaration
protected override void OnSaveChanges()
Overrides
OnUnwireEditUIElement(SfComboBox)
Unwire or unhook the events associated with the edit UIElement.
Declaration
protected override void OnUnwireEditUIElement(SfComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfComboBox | uiElement | An instance of SfComboBox. |
Overrides
OnUpdateCellStyle(RowColumnIndex, TextBlock, SpreadsheetColumn)
Updates the style and content for display element.
Declaration
protected override void OnUpdateCellStyle(RowColumnIndex cellRowColumnIndex, TextBlock uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | Coordinates of a cell. |
Windows.UI.Xaml.Controls.TextBlock | uiElement | An instance of |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnUpdateEditCellStyle(RowColumnIndex, SfComboBox, SpreadsheetColumn)
Updates the style and content for edit element.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, SfComboBox uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | Coordinates of a cell. |
SfComboBox | uiElement | An instance of |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnWireEditUIElement(SfComboBox)
Wire or hook the events associated with edit UIElement.
Declaration
protected override void OnWireEditUIElement(SfComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfComboBox | uiElement | An instance of SfComboBox. |
Overrides
SetControlValue(Object)
Invoked to set the control value of the current cell.
Declaration
public override bool SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | value of the current cell. |
Returns
Type | Description |
---|---|
System.Boolean | True or False. |
Overrides
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e |
Returns
Type |
---|
System.Boolean |