Click here to Skip to main content
15,887,401 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Need help with loading help files Pin
Pete O'Hanlon26-Apr-09 22:13
mvePete O'Hanlon26-Apr-09 22:13 
GeneralRe: Need help with loading help files Pin
Etienne_12326-Apr-09 23:50
Etienne_12326-Apr-09 23:50 
GeneralRe: Need help with loading help files Pin
Pete O'Hanlon27-Apr-09 0:13
mvePete O'Hanlon27-Apr-09 0:13 
GeneralRe: Need help with loading help files Pin
Pete O'Hanlon3-May-09 1:41
mvePete O'Hanlon3-May-09 1:41 
QuestionAdding items to a ListView in WPF ? Pin
Mohammad Dayyan25-Apr-09 8:54
Mohammad Dayyan25-Apr-09 8:54 
AnswerRe: Adding items to a ListView in WPF ? Pin
Mark Salsbery25-Apr-09 9:01
Mark Salsbery25-Apr-09 9:01 
GeneralRe: Adding items to a ListView in WPF ? Pin
Mohammad Dayyan25-Apr-09 9:18
Mohammad Dayyan25-Apr-09 9:18 
GeneralRe: Adding items to a ListView in WPF ? Pin
Mark Salsbery25-Apr-09 9:26
Mark Salsbery25-Apr-09 9:26 
You haven't bound any of your columns to a member of your collection, so nothing will show.

Typically you'd do something like this:
    public class MyItem
    {
        public string ID { get; set; }
        public string Number { get; set; }
        public string Name { get; set; }
        public string LName { get; set; }
    }

    public class MyItemCollection : ObservableCollection<MyItem>
    {
    }

...

listview.ItemsSource = new MyItemCollection(); 

<ListView Name="listview" Margin="158,106,156,128">
    <ListView.View>
        <GridView>
            <GridViewColumn Header="ID" DisplayMemberBinding="{Binding Path=ID}"/>
            <GridViewColumn Header="Number" DisplayMemberBinding="{Binding Path=Number}"/>
            <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}"/>
            <GridViewColumn Header="LName" DisplayMemberBinding="{Binding Path=LName}"/>
        </GridView>
    </ListView.View>
</ListView> 


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionResource Dictionary in subprojects Pin
#realJSOP24-Apr-09 6:36
mve#realJSOP24-Apr-09 6:36 
AnswerRe: Resource Dictionary in subprojects Pin
Gideon Engelberth24-Apr-09 7:15
Gideon Engelberth24-Apr-09 7:15 
GeneralRe: Resource Dictionary in subprojects Pin
#realJSOP24-Apr-09 8:00
mve#realJSOP24-Apr-09 8:00 
AnswerRe: Resource Dictionary in subprojects Pin
Eslam Afifi24-Apr-09 9:26
Eslam Afifi24-Apr-09 9:26 
GeneralRe: Resource Dictionary in subprojects Pin
User 2710091-May-09 5:17
User 2710091-May-09 5:17 
QuestionRe: Resource Dictionary in subprojects Pin
Eslam Afifi25-Jun-09 11:12
Eslam Afifi25-Jun-09 11:12 
AnswerRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 2:42
User 27100929-Jun-09 2:42 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:31
Eslam Afifi29-Jun-09 15:31 
GeneralRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 15:37
User 27100929-Jun-09 15:37 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:39
Eslam Afifi29-Jun-09 15:39 
QuestionHow to get the control position to add another control below that? Pin
salon24-Apr-09 2:30
salon24-Apr-09 2:30 
AnswerRe: How to get the control position to add another control below that? Pin
Ray Cassick24-Apr-09 3:16
Ray Cassick24-Apr-09 3:16 
AnswerRe: How to get the control position to add another control below that? Pin
Mark Salsbery25-Apr-09 7:42
Mark Salsbery25-Apr-09 7:42 
Questionrendertransformorigin fails Pin
VCsamir24-Apr-09 1:56
VCsamir24-Apr-09 1:56 
QuestionWeird behavior styling a Border Pin
Foxandxss23-Apr-09 13:34
Foxandxss23-Apr-09 13:34 
AnswerRe: Weird behavior styling a Border Pin
#realJSOP23-Apr-09 22:38
mve#realJSOP23-Apr-09 22:38 
GeneralRe: Weird behavior styling a Border Pin
Pete O'Hanlon23-Apr-09 23:16
mvePete O'Hanlon23-Apr-09 23:16 

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.