Approved
Last Updated: 06 Nov 2019 07:34 by ADMIN

I have implemented the ListDataValidationRule code to add a dropdownlist to the spreadsheet. Based on the code I can find and the searching I have conducted, it seems to be correct, however the dropdown does not appear in the control.

The dropdown list does appear in Excel when I export the file.

 

Dim Context As ListDataValidationRuleContext = New ListDataValidationRuleContext(CurrentWorksheet, CurrentCellIndex)

Context.InputMessageTitle = "Restricted input"
Context.InputMessageContent = "The input is restricted to the week days."
Context.ErrorStyle = ErrorStyle.Stop
Context.ErrorAlertTitle = "Invalid Bedroom Type"
Context.ErrorAlertContent = "The entered value is not valid."
Context.InCellDropdown = True

Context.Argument1 = String.Join(",", _Data.ArchitectCert_UnitBedrooms.AsEnumerable().Select(Function(x) x.Field(Of Integer)("UnitBedroomNumber").ToString()).ToArray())


Dim Rule As ListDataValidationRule = New ListDataValidationRule(Context)

CurrentWorksheet.Cells(CurrentCellIndex).SetDataValidationRule(Rule)
Approved
Last Updated: 02 Jul 2019 11:06 by ADMIN
Created by: Dimitar
Comments: 0
Category: Spreadsheet
Type: Feature Request
0
Add support for creating Tables and applying tables styles (predefined ones or custom).
Approved
Last Updated: 01 Mar 2019 14:41 by Tom
If a worksheet spans more than one page, you can print row and column headings or labels (also called print titles) on every page to ensure that the data is properly labeled.
Approved
Last Updated: 06 Jul 2018 08:21 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Spreadsheet
Type: Feature Request
2

			
Approved
Last Updated: 20 Nov 2017 12:03 by ADMIN
Approved
Last Updated: 13 Nov 2017 16:08 by ADMIN
ADMIN
Created by: Hristo
Comments: 0
Category: Spreadsheet
Type: Feature Request
1