Posted By

closer on 12/06/10


Tagged

data bindingC#net


Versions (?)

DataBinding_XAML


 / Published in: XML
 

  1. <ListView Name="m_entryList" SelectionMode="Single">
  2. <ListView.View>
  3. <GridView>
  4. <GridViewColumn Header="#" Width="50" DisplayMemberBinding="{Binding Path=SerialNo}"></GridViewColumn>
  5. <GridViewColumn Header="Date" Width="50"></GridViewColumn>
  6. <GridViewColumn Header="ID" Width="50"></GridViewColumn>
  7. <GridViewColumn Header="Title" Width="350" DisplayMemberBinding="{Binding Path=Title}"></GridViewColumn>
  8. </GridView>
  9. </ListView.View>
  10. </ListView>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: closer on December 6, 2010
  1. ListView 中沒有設定 Data Source。我們在 .cs 中再設定。
  2. 即使如此,我們還是可以直接在 GridViewColumn.DisplayMemberBinding 中設定 binding path。

You need to login to post a comment.