This is a migrated thread and some comments may be shown as answers.

[Solved] Grid view align problem

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nitin b
Top achievements
Rank 1
nitin b asked on 05 Mar 2010, 11:29 PM
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;
            }
        }

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Mar 2010, 11:11 AM
Hi,

This forum is for our ASP.NET AJAX grid.

Kind regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
nitin b
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or