Hi
I just discovered it's not possible to do what I originally wanted, so Im just going to tell what exactly I want to accomplish
1. Fill the content of a radgridview to the edges so I don't have empty space between the tablecontent and the tableborders, here's an ugly ascii representation
______________________________
|[column][column](space space space)|
|[cell......][cell......](space space space)|
|[cell......][cell......](space space space)|
|[cell......][cell......](space space space)|
|(space space space space space sp)|
|(space space space space space sp)|
|(space space space space space sp)|
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
instead I want the columns to stretch and empty rows be displayed instead of a white background, kinda like this
______________________________
|[column got stretched][column stretch]|
|[Cell stretched with it..][this cell too.....]|
|[Cell stretched with it..][this cell too.....]|
|[Cell with no data, it ju][st looks like....]| (...there's a row but all the cells have a white background)
|[Cell with no data, it ju][st looks like....]|
|[Cell with no data, it ju][st looks like....]|
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2. I have a list of custom data objects (List<someObject>) basically I want it to automatically figure out that some properties goes to specific cells and others aren't shown, so if I have.
and I create some columns I want to map showthisString to the column "MyAwesomeColumn" and showThisInt to "AwesomePoints". I am expecting code like this
.net 4.0 and latest C# vs 2010
I just discovered it's not possible to do what I originally wanted, so Im just going to tell what exactly I want to accomplish
1. Fill the content of a radgridview to the edges so I don't have empty space between the tablecontent and the tableborders, here's an ugly ascii representation
______________________________
|[column][column](space space space)|
|[cell......][cell......](space space space)|
|[cell......][cell......](space space space)|
|[cell......][cell......](space space space)|
|(space space space space space sp)|
|(space space space space space sp)|
|(space space space space space sp)|
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
instead I want the columns to stretch and empty rows be displayed instead of a white background, kinda like this
______________________________
|[column got stretched][column stretch]|
|[Cell stretched with it..][this cell too.....]|
|[Cell stretched with it..][this cell too.....]|
|[Cell with no data, it ju][st looks like....]| (...there's a row but all the cells have a white background)
|[Cell with no data, it ju][st looks like....]|
|[Cell with no data, it ju][st looks like....]|
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2. I have a list of custom data objects (List<someObject>) basically I want it to automatically figure out that some properties goes to specific cells and others aren't shown, so if I have.
public
class
SomeObject
{
public
string
showthisString;
public
DateTime showThisDate;
public
int
showThisInt;
public
string
dontshowthisstring;
public
decimal
showThisDec;
public
int
dontshowthisint;
}
public
void
InSomeMethod()
{
DataTextColumn AwesomeCol =
new
DataTextColumn(
"UniquelyAwesome"
,
"who's awesome?"
)
//uniquename, headerText
AwesomeCol.readOnly=
true
;
//if I wanted it readonly that is, just to display some sort of functionality change
RadGridView grid;
//for code block highlighting
grid.Columns.Add(AwesomeCol)
grid.Link.Link(
"showThisString"
,
"UniquelyAwesome"
);
//when databinding it will find the showthisString property and map it to the column that has a uniquename of UniquelyAwesome
}
.net 4.0 and latest C# vs 2010