This question is locked. New answers and comments are not allowed.
hey,
im building a grid with the following header col definitions:
GridViewDataColumn actColumn = new GridViewDataColumn();
actColumn.UniqueName = "MYNAME";
myGrid.Columns.Add(actColumn);
the item source is a list<> with a self defined object:
public class DataTest
{
private string myname;
public string MYNAME
{
get { return this.myname; }
}
}
the grid binds the uniqe name, defined in the datacolumn automatically to the get member in the object collection an displays it in the right column.
but i'dont want to write an new object for every application case. can i add some kind of data structure to the list<> (eg an iEnumerable with XElements) ? the data structure in the xml should be like this:
<MYNAME>stringToDisplay</MYNAME>
<MYNAME>stringToDisplay</MYNAME>
...
is it possible to do the automatic matching between the header cols and the databind with such or a similar mechanism?
thanks in advance,
jonas
im building a grid with the following header col definitions:
GridViewDataColumn actColumn = new GridViewDataColumn();
actColumn.UniqueName = "MYNAME";
myGrid.Columns.Add(actColumn);
the item source is a list<> with a self defined object:
public class DataTest
{
private string myname;
public string MYNAME
{
get { return this.myname; }
}
}
the grid binds the uniqe name, defined in the datacolumn automatically to the get member in the object collection an displays it in the right column.
but i'dont want to write an new object for every application case. can i add some kind of data structure to the list<> (eg an iEnumerable with XElements) ? the data structure in the xml should be like this:
<MYNAME>stringToDisplay</MYNAME>
<MYNAME>stringToDisplay</MYNAME>
...
is it possible to do the automatic matching between the header cols and the databind with such or a similar mechanism?
thanks in advance,
jonas
