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
530
Wingrid ValueList resolve event
posted

Is there any event that fires when a value in the dataset fails to resolve to a valuelist item?

For example:// Fill an existing valuelistGrid.DisplayLayout.ValueLists[0].ValueListItems.Add( 1, ”ItemA” );// Set dataset valueultraDataRow[0] = 1 // resolves to ItemAultraDataRow [0] = 99 // doesn’t resolve to any value in the bound valuelist. Is there any event for this ?
Parents
No Data
Reply
  • 469350
    Offline posted

     There's no event specifically for this. But I think if you set the column Style to DropDownValidate, the CellDataError event will fire if the user tried to leave the cell with a value that is not on the list. You could also use BeforeExitEditMode or BeforeCellUpdate and validate the value against the list yourself. 

Children