Dear Telerik Team,
Is it possible to create a custom Drop Down list (validation list) in the Excel worksheet when exporting the RadGridView with ExportToExcelML (VB.net code)?
Best regards,
Alain Cavenaile
Is it possible to create a custom Drop Down list (validation list) in the Excel worksheet when exporting the RadGridView with ExportToExcelML (VB.net code)?
I;m giving herebelow an example of code to create a drop down list using the Excel Interop assemblies but which I'd like to use/convert with the faster ExportToExcelML method:
Private Sub AddCategoryValidationList(ByVal rng As Excel.Range)
With
rng.Validation
.Add(Excel.XlDVType.xlValidateList, _
Excel.XlDVAlertStyle.xlValidAlertStop, _
1,
"=Beneficiaries!$A$1:$A$1000")
.InCellDropdown =
True
.ErrorTitle =
"Stock release form"
.InputMessage =
"Please select a beneficiairy"
.ErrorMessage =
"The value you have entered is not a " & _
"valid beneficiary. Please select a beneficiary from " & _
"the list."
.ShowInput =
True
.ShowError =
True
End With
End Sub
Best regards,
Alain Cavenaile