Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4341
Setting value for XamGrid DateColumn
posted

Hi, We using a XamGrid control which consists of textcolumns and DateColumns. we want to put some validations on the datecolumn and if the validations fail we want old date to be retained. The validations will be Columnwise as well as Rowwise. We are validation these dates in the CellExitingEditMode Event, however when the validation fails, even if we set e.Cancel = true; the new value is reflected. Please find the attached screenshot, here we have two datecolumns showing the start date and end date, the we want to validate the start date to be less than the end date. Please let us know if there is a way to retain the old values or cancel the changes made.

Further, we want to Display this XamGrid within the XamDialogWindow, but When we select a date from the datepicker, move to next cell and come back to the original cell and click on the DatePicker icon following exception is thrown "Must disconnect specified child from current parent Visual before attaching to new parent Visual" Please let us know what could be the cause of the error. I am having a Datatable as ItemsSource for the XamGrid.

We are using Infragistics Version 11.2.20112.1012

Parents Reply Children