Giter Site home page Giter Site logo

Comments (9)

glennawatson avatar glennawatson commented on April 27, 2024 1

Browsable(false) by the looks. Wouldn't that be more suitable?

from reactiveui.

Micha-kun avatar Micha-kun commented on April 27, 2024 1

It worked! YESSS!

from reactiveui.

glennawatson avatar glennawatson commented on April 27, 2024

Is there an attribute for the annotations that makes the property grid not generate for that property. Doing a quick hunt

from reactiveui.

Micha-kun avatar Micha-kun commented on April 27, 2024

Hmm... Maybe both are required (depending on the control is binded)? In DevExpress controls , at least, the one that works is [Display(Order = -1)]

image

from reactiveui.

Micha-kun avatar Micha-kun commented on April 27, 2024

Hmmm there are other properties on DisplayAttribute that prevents to generate the column:
[Display(Order = -1)] hides the column but [Display(AutoGenerateField = false)] prevents the column automatic generation and [Display(AutoGenerateFilter = false)] prevents the column to be used on filters.

So, the correct attribute usage should be [Browsable(false), Display(Order = -1, AutoGenerateField = false, AutoGenerateFilter = false)]

from reactiveui.

glennawatson avatar glennawatson commented on April 27, 2024

anyway open to having these attributes on the class mentioned providing it can be handled by all platforms etc.

Happy to take a PR if you like and we can get it in the next release?

from reactiveui.

glennawatson avatar glennawatson commented on April 27, 2024

BTW I suspect for other platforms like WPF it'll be a good thing. WPF doesn't come with a native property grid, but almost all I know of work like the winforms one and obey those properties. Eg I suspect the problem you're having would be a issue even with the native winforms propertygrid not just the devexpress ones.

from reactiveui.

Micha-kun avatar Micha-kun commented on April 27, 2024

Ok! I'm going to make a PR :)

from reactiveui.

github-actions avatar github-actions commented on April 27, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from reactiveui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.