Results 1 to 3 of 3

Thread: Selecting grid items in a PropertyGrid

  1. #1
    Join Date
    Jan 2009
    Posts
    2,404
    Rep Power
    0

    Default Selecting grid items in a PropertyGrid

    I'm trying to do some input validation for PropertyGrid items. Thing is, I can't find a method to reselect the property item for editing if it's invalid. How can I do this?
    Rooted OnePlus 2 64GB Ed, Android 5.1.1 OxygenOS ; on teifin' AT&T's network; Rooted ASUS Transformer TF101 w/ dock, Android 5.1 KatKiss; Laptop: ASUS X550C, 2.0GHzx2, 8GB, 512GB SSD, Kubuntu 15.10;
    Facebook page: Skeleville Technology Solutions

  2. #2
    Join Date
    Jan 2009
    Posts
    2,404
    Rep Power
    0

    Default

    Problem solved. Turns out I could validate input and throw Exceptions within the class's property set, then the Grid would catch this exception (and show it's message) when the input is invalid and restore the former value.

    Are there any other ways?
    Rooted OnePlus 2 64GB Ed, Android 5.1.1 OxygenOS ; on teifin' AT&T's network; Rooted ASUS Transformer TF101 w/ dock, Android 5.1 KatKiss; Laptop: ASUS X550C, 2.0GHzx2, 8GB, 512GB SSD, Kubuntu 15.10;
    Facebook page: Skeleville Technology Solutions

  3. #3
    Join Date
    Oct 2005
    Posts
    745
    Rep Power
    0

    Default

    Quote Originally Posted by Skele Drew View Post
    Problem solved. Turns out I could validate input and throw Exceptions within the class's property set, then the Grid would catch this exception (and show it's message) when the input is invalid and restore the former value.
    I figured it would have been something along those lines but didn't see any supporting documentation during my short search.
    3.14159265358979323846264338327950288
    4197169399375105820974944592307816406
    28620899862803482534211706798 pi 101

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •