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
150
Displaying Selected Columns
posted

is the Visibility attribute of the Field element the only way to control visibility of a of a column. My object whose collection is used as DataContext has 20 properties yet I want to display only 5 of them in a grid. I don't want to define 20 field elements and set the visiblity of 15 of them to false. 

Parents
No Data
Reply
  • 3627
    posted

    I'm trying to remember how the auto amtchup logic works for choosing the "correct" field layout. I would like to think that if you define fields for a subset of the exposed properties, it would match things up for you. In other words, if you defined just two fields (FullName and Phone) to represent a list of contact objects, wouldn't that work just fine?

    If not, you can make your desired field layout (subset of fields) and then programmatically assign that layout to the record in the AssigningFieldLayoutToItem event of the grid.

Children