File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Custom Validation/.NET/Custom Validation/Custom Validation
Date Validation/.NET/Date Validation/Date Validation
List Validation/.NET/List Validation/List Validation
Number Validation/.NET/Number Validation/Number Validation
Time Validation/.NET/Time Validation/Time Validation Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void Main(string[] args)
1818
1919 // Data validation for custom data.
2020 IDataValidation validation = worksheet . Range [ "A3" ] . DataValidation ;
21- worksheet . Range [ "A1" ] . Text = "Enter the value greater than 10 in A1" ;
21+ worksheet . Range [ "A1" ] . Text = "Enter a value greater than 10 in A1" ;
2222 worksheet . Range [ "A2" ] . Text = "Enter the text in A3" ;
2323 worksheet . Range [ "A1" ] . AutofitColumns ( ) ;
2424 validation . AllowType = ExcelDataType . Formula ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ static void Main(string[] args)
2626
2727 //Shows the error message
2828 dateValidation . ShowErrorBox = true ;
29- dateValidation . ErrorBoxText = "Enter Value between 10/5/2003 to 10/5/2004" ;
29+ dateValidation . ErrorBoxText = "Enter a value between 10/5/2003 and 10/5/2004" ;
3030 dateValidation . ErrorBoxTitle = "ERROR" ;
3131 dateValidation . PromptBoxText = "Data validation for date" ;
3232 dateValidation . ShowPromptBox = true ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ static void Main(string[] args)
1414 IWorkbook workbook = application . Workbooks . Create ( 1 ) ;
1515 IWorksheet worksheet = workbook . Worksheets [ 0 ] ;
1616
17- //Data Validation for List
17+ //Data validation for the list
1818 IDataValidation listValidation = worksheet . Range [ "C3" ] . DataValidation ;
1919 worksheet . Range [ "C1" ] . Text = "Data Validation List in C3" ;
2020 worksheet . Range [ "C1" ] . AutofitColumns ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ static void Main(string[] args)
2525
2626 //Shows the error message
2727 numberValidation . ShowErrorBox = true ;
28- numberValidation . ErrorBoxText = "Enter Value between 0 to 10" ;
28+ numberValidation . ErrorBoxText = "Enter a value between 0 and 10" ;
2929 numberValidation . ErrorBoxTitle = "ERROR" ;
3030 numberValidation . PromptBoxText = "Data validation for numbers" ;
3131 numberValidation . ShowPromptBox = true ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ static void Main(string[] args)
1414 IWorkbook workbook = application . Workbooks . Create ( 1 ) ;
1515 IWorksheet worksheet = workbook . Worksheets [ 0 ] ;
1616
17- //Data Validation for Time
17+ //Data validation for the time
1818 IDataValidation timeValidation = worksheet . Range [ "B3" ] . DataValidation ;
1919 worksheet . Range [ "B1" ] . Text = "Enter the time between 10:00 and 12:00 'o Clock in B3" ;
2020 worksheet . Range [ "B1" ] . AutofitColumns ( ) ;
You can’t perform that action at this time.
0 commit comments