Free Support Forum - aspose.com

Validations

Received : 2007/12/03 03:17:20
Message : hi,
iam writing code for validations is:

WebCell cell = sheet1.Cells["E" + xx + ""];
Validation v = cell.CreateValidation(ValidationType.DropDownList, true);

its working fine but one problem is there.
when i double click on the grid cell its giving error ***** marks in the feild where i have given validation. after selecting one value from drop down list its working fine.
iam binding dataset to the grid.
can you solve my problem. if value is not there it has to show an error otherwise it should not. how to do that


This message was posted using Aspose.Live 2 Forum

Hi Swapna,

Well, I tested your scenario a bit and I don't find the problem you are mentioning. Do you utilize CellDoubleClick (server side) event or onDoubleClickCell client side event or some other event to write some code there which might clash and cause the error. Could you give us more details and create a sample test project with all the files attached, zip them to make it one file and post it here to reproduce the issue. We will check and figure it out soon.

Thank you.