Overriding type validation

Grids for WPF Forum

Posted 8 years ago by Rupert Mulrenan
Version: 9.2.0554
Avatar

I am aware of wpf validation rules etc... but how can i override the actipro type checks (int,double,string etc)?

Also what is the best way to force the control to revalidate the input?

NB. Atm im setting propertyGrid.SelectedObject and letting reflection do the rest.

Cheers

Comments (1)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Rupert,

The PropertyGrid doesn't really have any validation of it's own, it simply leverages the WPF validation. The default property editors use native WPF ComboBox and TextBox controls, and binds their respective properties to the underlying property. This binding is what performs the validation. If you'd like to customize the validation, then you would need to use a custom property editor. We have a Data Validation QuickStart that shows a few examples of this.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.