Click here to Skip to main content
15,889,909 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: silverlight datagrid double click Pin
Pete O'Hanlon31-Dec-11 11:05
mvePete O'Hanlon31-Dec-11 11:05 
GeneralRe: silverlight datagrid double click Pin
arkiboys3-Jan-12 2:46
arkiboys3-Jan-12 2:46 
GeneralRe: silverlight datagrid double click Pin
Pete O'Hanlon3-Jan-12 3:19
mvePete O'Hanlon3-Jan-12 3:19 
AnswerRe: silverlight datagrid double click Pin
Abhinav S1-Jan-12 19:38
Abhinav S1-Jan-12 19:38 
Questionpopulate datagrid Pin
arkiboys30-Dec-11 0:42
arkiboys30-Dec-11 0:42 
AnswerRe: populate datagrid Pin
V.30-Dec-11 1:15
professionalV.30-Dec-11 1:15 
GeneralRe: populate datagrid Pin
arkiboys30-Dec-11 1:21
arkiboys30-Dec-11 1:21 
GeneralRe: populate datagrid Pin
V.30-Dec-11 1:43
professionalV.30-Dec-11 1:43 
In XAML
<ListView Name="lv_countries" ItemsSource="{Binding}" SelectionChanged="lv_countries_SelectionChanged">
  <ListView.View>
    <GridView>
      <GridViewColumn Header="Code" Width="Auto" DisplayMemberBinding="{Binding Path=Code}" />
      <GridViewColumn Header="Country" Width="Auto" DisplayMemberBinding="{Binding Path=Name}" />
    </GridView>
  </ListView.View>
</ListView>


In code behind.
lv_countries.DataContext = countrylistresponse.CountryList;

where countrylistresponse.CountryList is an array of Country class. Country class has two properties: Code and Name (see XAML)

I'm not sure what kind of type e.Result.DetailedData is. You could try setting AutoGenerateColumns to "True" or define the columns in XAML.

PS: I know my sample is a ListView, but the principle is the same. Note however that WPF and Silverlight are slightly different. Could be that you have to call eg "DataBind()" method like you have to don in Aspx. I don't know. If VS gives you a blue bar under the statement it should tell you something when you hover over the statement...

hope this helps.
V.

GeneralRe: populate datagrid Pin
V.30-Dec-11 1:46
professionalV.30-Dec-11 1:46 
GeneralRe: populate datagrid Pin
arkiboys30-Dec-11 10:32
arkiboys30-Dec-11 10:32 
GeneralRe: populate datagrid Pin
V.30-Dec-11 22:37
professionalV.30-Dec-11 22:37 
GeneralRe: populate datagrid Pin
arkiboys2-Jan-12 11:49
arkiboys2-Jan-12 11:49 
QuestionLoad Usercontrols in MVVM Pin
jogisarge29-Dec-11 10:59
jogisarge29-Dec-11 10:59 
AnswerRe: Load Usercontrols in MVVM Pin
Pete O'Hanlon29-Dec-11 11:52
mvePete O'Hanlon29-Dec-11 11:52 
Questiondata binding and resource file Pin
zedray28-Dec-11 0:29
zedray28-Dec-11 0:29 
QuestionPayment gateway in Silverlight Pin
saroja24127-Dec-11 1:47
saroja24127-Dec-11 1:47 
AnswerRe: Payment gateway in Silverlight Pin
ThatsAlok3-Jan-12 20:28
ThatsAlok3-Jan-12 20:28 
QuestionWPF does not run on an other machine Pin
Turhan Coskun25-Dec-11 10:34
professionalTurhan Coskun25-Dec-11 10:34 
AnswerRe: WPF does not run on an other machine Pin
SledgeHammer0125-Dec-11 12:54
SledgeHammer0125-Dec-11 12:54 
GeneralRe: WPF does not run on an other machine Pin
Turhan Coskun26-Dec-11 1:16
professionalTurhan Coskun26-Dec-11 1:16 
GeneralRe: WPF does not run on an other machine Pin
SledgeHammer0126-Dec-11 7:39
SledgeHammer0126-Dec-11 7:39 
AnswerRe: WPF does not run on an other machine Pin
Turhan Coskun28-Dec-11 3:38
professionalTurhan Coskun28-Dec-11 3:38 
QuestionBinding a SolidColorBrush resource of Theme Pin
Prasoon Chaudhary22-Dec-11 23:22
Prasoon Chaudhary22-Dec-11 23:22 
QuestionSilverlight Navigation menu Pin
arkiboys22-Dec-11 21:25
arkiboys22-Dec-11 21:25 
AnswerRe: Silverlight Navigation menu Pin
Abhinav S27-Dec-11 21:21
Abhinav S27-Dec-11 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.