Custom Data Validation
Hi
Could you please point me at some examples of Custom Data Validation techniques? What I'd like to do is set the cell data validation 'Allow' to 'Custom' and then put a formula in the 'Source' field.
I've Googled this and come up with 'http://www.syncfusion.com/Products/Xlsio/windows/Articles/data_validation.aspx' but just get XML Parsing Error: no element found' when trying to view the page. Actually, I get this error quite often when trying to view Syncfusion pages, any idea why?
Thanks
Adrian
Could you please point me at some examples of Custom Data Validation techniques? What I'd like to do is set the cell data validation 'Allow' to 'Custom' and then put a formula in the 'Source' field.
I've Googled this and come up with 'http://www.syncfusion.com/Products/Xlsio/windows/Articles/data_validation.aspx' but just get XML Parsing Error: no element found' when trying to view the page. Actually, I get this error quite often when trying to view Syncfusion pages, any idea why?
Thanks
Adrian
SIGN IN To post a reply.
5 Replies
BR
Balamurugan R
Syncfusion Team
December 22, 2009 01:44 PM UTC
Hi Adrian,
Thank you for your interest in syncfusion products
Could you please use this link to get more examples about the
data validation.
http://www.syncfusion.com:91/products/xlsio/backoffice/Articles/data_validation.aspx
Please,let us know if you have any queries,
Regards,
Balamurugan
Thank you for your interest in syncfusion products
Could you please use this link to get more examples about the
data validation.
http://www.syncfusion.com:91/products/xlsio/backoffice/Articles/data_validation.aspx
Please,let us know if you have any queries,
Regards,
Balamurugan
AG
Adrian Gingell
December 22, 2009 05:29 PM UTC
Hi Balamurugan
So I set AllowType = ExcelDataType.User by what else do I need to do to set a custom formula? Please give me a clue.
I've tried various combinations of other IDataValidation properties but I never end up with 'Custom' showing in data validation when I later view the spreadsheet, it alway seems to be 'List'.
Regards
Adrian
So I set AllowType = ExcelDataType.User by what else do I need to do to set a custom formula? Please give me a clue.
I've tried various combinations of other IDataValidation properties but I never end up with 'Custom' showing in data validation when I later view the spreadsheet, it alway seems to be 'List'.
Regards
Adrian
GM
Geetha M
Syncfusion Team
December 24, 2009 04:07 AM UTC
Hi Adrian,
Thank you for the details.
You can set custom data validation using the code snippet given below.
Please refer to the sample placed in the link below and let us know if you have any questions.
http://help.syncfusion.com/samples/XlsIO.Windows/F92126/CustomDV.zip
Regards,
Geetha
Thank you for the details.
You can set custom data validation using the code snippet given below.
validation.AllowType = ExcelDataType.Formula;
validation.FirstFormula = "=IF(A2Please refer to the sample placed in the link below and let us know if you have any questions.
http://help.syncfusion.com/samples/XlsIO.Windows/F92126/CustomDV.zip
Regards,
Geetha
AG
Adrian Gingell
December 24, 2009 03:13 PM UTC
Thanks very much Geetha, much appreciated, it works a treat.
Adrian
Adrian
GM
Geetha M
Syncfusion Team
December 25, 2009 05:56 AM UTC
Hi Adrian,
Glad to hear the solution worked for you.
Regards,
Geetha
Glad to hear the solution worked for you.
Regards,
Geetha
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
AG Adrian Gingell
- Dec 21, 2009 05:26 PM UTC
- Dec 25, 2009 05:56 AM UTC