GridView Bitmask or Flags Column

1 posts, 0 answers
  1. Tim
    Tim avatar
    87 posts
    Member since:
    Aug 2008

    Posted 26 Feb 2012 Link to this post

    I was wondering if anyone has a good way for binding a column that is a bitmask / flags value.

    • MVVM
    • GridView shows a collection of Addresses
    • Each address can serve multiple "purposes".  A [Purpose] (int) property is on each Address object which is a bitmask / flags setting.
    • A single column will be shown for the [Purpose] property and display ALL the purpose "types" (Primary, Secondary, Billing, etc.) and checkboxes will be checked off for the ones that are "set" in the [Purpose] bitmask.

    My current approach will probably be to hook into some events of the Grid and custom-bind the column and its set flags / masks.  I was just wondering if anyone had a better approach.

Back to Top