Query |
Response |
So i need the example how we can enable the datatypes of each column so that user can enter valid values.
|
We have prepared a working sample with few data types (that are supported with data validation) to enable the datatypes of each column, which validates the user input in particular columns and restricts the invalid values. Please find the sample from the following link.
|
currently i am trying this but performance is very slow
IDataValidation intvalidation = column.EntireColumn.DataValidation;
intvalidation.DataRange = worksheet.UsedRange;
intvalidation.AllowType = ExcelDataType.Integer;
|
Kindly look into the following link and try the below code to improve performance.
IDataValidation intvalidation = column.EntireColumn.DataValidation;
intvalidation.BeginUpdate();
intvalidation.AllowType = ExcelDataType.Integer;
intvalidation.EndUpdate();
|