|
|
|
пустой ListView после присваивания списка данных.
|
|||
|---|---|---|---|
|
#18+
Всем доброго времени суток! Есть проблема - пишу на WPF. Есть окно, в котором есть ListView в него я пытаюсь загрузить данные из xml. Данные из класса приходят, но в ListView отображаются 10 пустых строк (их на самом деле 10 в списке из xData.getDocList_fromXML()). Почему и как их отобразить? Вот код, в котором в том числе и прикрепляются колонки к гриду: //объект класса для загрузки списка документов xmlData xData = new xmlData(); GridView gv = new GridView(); this.lst.View = gv; GridViewColumn col = new GridViewColumn(); col.Header = "id"; col.Width = 0; col.DisplayMemberBinding = new Binding("id"); gv.Columns.Add(col); col = new GridViewColumn(); col.Header = "Наименование документа"; col.DisplayMemberBinding = new Binding("DocName"); col.Width = 400; gv.Columns.Add(col); col = new GridViewColumn(); col.Header = "Дата создания документа"; col.DisplayMemberBinding = new Binding("date_"); col.Width = 400; gv.Columns.Add(col); this.lst.ItemsSource = xData.getDocList_fromXML(); Покупайте наших слонов ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2009, 15:43 |
|
||
|
|

start [/forum/topic.php?fid=21&msg=36382659&tid=1442949]: |
0ms |
get settings: |
7ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
69ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
54ms |
get tp. blocked users: |
2ms |
| others: | 243ms |
| total: | 420ms |

| 0 / 0 |
