skip to main | skip to sidebar

What I (re)learned today

torsdag 6. august 2009

Setting binding from code

Forgot this one again:


var b = new Binding("Data"); // Property on datacontext

TheGrid.SetBinding(DataGrid.ItemsSourceProperty, b);


Lagt inn av Lars Erik kl. 04:37

Ingen kommentarer:

Legg inn en kommentar

Nyere innlegg Eldre innlegg Startsiden
Abonner på: Legg inn kommentarer (Atom)

Bloggarkiv

  • ►  2011 (1)
    • ►  mars (1)
  • ▼  2009 (13)
    • ▼  aug. (13)
      • More on Objectdatasource
      • Using a ObjectDataSource that takes constructors
      • Getting a property value from reflection
      • Merge xml files with XDocument
      • RegEx - I don't need to learn it!
      • Object Copy Function
      • Binding ComboBox to enum
      • PagedCollectionView's filter does not refilter on ...
      • Syntax of custom comparer in OrderBy
      • Setting binding from code
      • Lambda syntax for eventhandlers
      • Convert a List to an ObservableCollection
      • Quit googleing, start using your brain!

Søk i denne bloggen