I am using radgridview in WPF. and this radgrid view i am adding dynamically (runtime) as well as setting up alignment for some of column.
my problem is when i used horizontal scroll. the alignment is distrub. please see attached file.
I know there must be some property for the same as we see in first time,
Please advise what i have to to?
Thanks,
Nitin
design time code works fine but after scrolling the aligment is not looking good.
private static void format_column(GridViewDataColumn gvcFormatcolumn, char a)
{
if (a.Equals('A'))
{
gvcFormatcolumn.DataFormatString = "{0:N2}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
else if (a.Equals('Q'))
{
gvcFormatcolumn.DataFormatString = "{0:N0}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
else if (a.Equals('D'))
{
gvcFormatcolumn.DataFormatString = "{0:dd-MMM-yyyy}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
}
my problem is when i used horizontal scroll. the alignment is distrub. please see attached file.
I know there must be some property for the same as we see in first time,
Please advise what i have to to?
Thanks,
Nitin
design time code works fine but after scrolling the aligment is not looking good.
private static void format_column(GridViewDataColumn gvcFormatcolumn, char a)
{
if (a.Equals('A'))
{
gvcFormatcolumn.DataFormatString = "{0:N2}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
else if (a.Equals('Q'))
{
gvcFormatcolumn.DataFormatString = "{0:N0}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
else if (a.Equals('D'))
{
gvcFormatcolumn.DataFormatString = "{0:dd-MMM-yyyy}";
gvcFormatcolumn.TextAlignment = TextAlignment.Right;
}
}
