Hello all,
I'm currently having a problem where the collection items values are not in the same table. I'm using objectdatasource as my table data source.
Desired output:
No Description
1 Value1
2 Value2
Current Output:
No Description
1 Value1
No Description
1 Value2
Property :
public class Test {
public List<Descriptions> myCollection
{
get
{
return myCollection;
}
}
}
public class Descriptions
{
public string Description
{
get { return description; }
set
{
if (description == value) return;
description = value;
}
}
}
This is how i set my data source:
Test t = new Test();
objectDataSource.DataSource = t.myCollection;
tabledatasource = objectDatasource;
Your help is much appreciated
Thx
I'm currently having a problem where the collection items values are not in the same table. I'm using objectdatasource as my table data source.
Desired output:
No Description
1 Value1
2 Value2
Current Output:
No Description
1 Value1
No Description
1 Value2
Property :
public class Test {
public List<Descriptions> myCollection
{
get
{
return myCollection;
}
}
}
public class Descriptions
{
public string Description
{
get { return description; }
set
{
if (description == value) return;
description = value;
}
}
}
This is how i set my data source:
Test t = new Test();
objectDataSource.DataSource = t.myCollection;
tabledatasource = objectDatasource;
Your help is much appreciated
Thx