Click here to Skip to main content
15,902,447 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Hi there :) Please help me Pin
Pete O'Hanlon6-Nov-08 4:11
mvePete O'Hanlon6-Nov-08 4:11 
AnswerRe: Hi there :) Please help me Pin
viashivan12-Nov-08 0:49
viashivan12-Nov-08 0:49 
QuestionAm I overcomplicating matters here? Pin
GDavy4-Nov-08 23:26
GDavy4-Nov-08 23:26 
AnswerRe: Am I overcomplicating matters here? Pin
ColinM1235-Nov-08 12:04
ColinM1235-Nov-08 12:04 
QuestionWierd Border drawing on ElementHost when it is dropped on a Windows Form. Pin
Aaron Hickman4-Nov-08 17:54
Aaron Hickman4-Nov-08 17:54 
AnswerRe: Wierd Border drawing on ElementHost when it is dropped on a Windows Form. Pin
Aaron Hickman4-Nov-08 17:58
Aaron Hickman4-Nov-08 17:58 
QuestionI need more ideas to customize the look of the color palette control with more properties [modified] Pin
ArunManick4-Nov-08 17:39
ArunManick4-Nov-08 17:39 
QuestionAdd content to a GridViewRowPresenter Pin
GDavy4-Nov-08 4:22
GDavy4-Nov-08 4:22 
I might be missing something basic here, but I am new to WPF ...
Anyway, I am trying to create a dynamic list (nr of columns and data depends on content of a file).
I used the GridViewHeaderRowPresenter for the header (displays fine) and am trying to use the GridViewRowPresenter to add rows to the list.
The problem I have is that the columns of my GridViewRowPresenter all show Object[] Array in stead of the actual data.

Since the makeup of the list is dynamic the xaml part of the list is actually only this:
<stackpanel x:name="MyGridViewList" orientation="Vertical"  >
  <gridviewheaderrowpresenter x:name="grdViewHeader" columnheadercontainerstyle="{StaticResource MyHeaderStyle}" />
</stackpanel>


In C# behind I do the following
GridViewColumnCollection colCollection = new GridViewColumnCollection();
//.... Here I fill all the collumns. reading stuff from a file

grdViewHeader.Columns = colCollection; //set the columns in the header -> This is working like a charm

//Here is the part where most likely I do something wrong
//RowParser is an object that parses rows from the file.
//The GetNextRow function returns an array of objects (size of array is equal to nr of columns)
object rowObj;
while( null != (rowObj = RowParser.GetNextRow()) )
{
 GridViewRowPresenter rowPresenter = new GridViewRowPresenter();
 rowPresenter.Columns = colCollection;
 rowPresenter.Content = rowObj;
 MyGridViewList.Children.Add(rowPresenter);
}


The object array that the GetNextRow returns is an array that can contain a mix of both strings and integers. It was my impression that automatically the rowPresenter would convert each member to a string value. This is not the case however.
Can someone guide me to what is wrong here?

Thanks in advance,
Davy
QuestionBeginners question on deployment/installation Pin
esjq3-Nov-08 9:47
esjq3-Nov-08 9:47 
AnswerRe: Beginners question on deployment/installation Pin
Jammer4-Nov-08 0:31
Jammer4-Nov-08 0:31 
GeneralRe: Beginners question on deployment/installation Pin
esjq4-Nov-08 9:47
esjq4-Nov-08 9:47 
QuestionsetingOneWindowInsideAnother WPF Pin
bilal haider2-Nov-08 17:44
bilal haider2-Nov-08 17:44 
AnswerRe: setingOneWindowInsideAnother WPF Pin
Pete O'Hanlon2-Nov-08 22:26
mvePete O'Hanlon2-Nov-08 22:26 
GeneralRe: setingOneWindowInsideAnother WPF Pin
bilal haider3-Nov-08 1:30
bilal haider3-Nov-08 1:30 
GeneralRe: setingOneWindowInsideAnother WPF Pin
Pete O'Hanlon3-Nov-08 1:39
mvePete O'Hanlon3-Nov-08 1:39 
GeneralRe: setingOneWindowInsideAnother WPF Pin
bilal haider3-Nov-08 2:28
bilal haider3-Nov-08 2:28 
GeneralRe: setingOneWindowInsideAnother WPF Pin
Pete O'Hanlon3-Nov-08 2:37
mvePete O'Hanlon3-Nov-08 2:37 
QuestionTest Project Issue ? Pin
Mohammad Dayyan2-Nov-08 17:00
Mohammad Dayyan2-Nov-08 17:00 
AnswerRe: Test Project Issue ? Pin
Pete O'Hanlon3-Nov-08 8:25
mvePete O'Hanlon3-Nov-08 8:25 
QuestionHow can I create this effect in WPF ? Pin
Mohammad Dayyan2-Nov-08 16:48
Mohammad Dayyan2-Nov-08 16:48 
AnswerRe: How can I create this effect in WPF ? Pin
Pete O'Hanlon2-Nov-08 22:50
mvePete O'Hanlon2-Nov-08 22:50 
GeneralRe: How can I create this effect in WPF ? Pin
Mohammad Dayyan3-Nov-08 2:44
Mohammad Dayyan3-Nov-08 2:44 
GeneralRe: How can I create this effect in WPF ? Pin
Pete O'Hanlon3-Nov-08 3:15
mvePete O'Hanlon3-Nov-08 3:15 
AnswerRe: How can I create this effect in WPF ? Pin
lneir12-Nov-08 19:28
lneir12-Nov-08 19:28 
QuestionSilverlight in VS 2008 Pin
Vimalsoft(Pty) Ltd1-Nov-08 0:37
professionalVimalsoft(Pty) Ltd1-Nov-08 0:37 

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.