RadGridView in telerik automatically divides the column width proportionally.Can we customize the column width programatically

1 Answer 143 Views
Miscellaneous
Piyush
Top achievements
Rank 1
Piyush asked on 09 Aug 2021, 10:02 AM

Hello all,
i want to add column dynalically to the RadGridView with setting width programatically.
Using below code i am not able set the width of column width inside RadGridView in wpf application.

RadgridView in telerik does not pick the column column specified in the code instead it opens proportionaloity to grid size.

Can you please help regarding how to set the column width programatically.

GridViewDataColumn col = new GridViewDataColumn();

                col.Header = "Order Number";
            col.UniqueName = "TRP";
           
            col.Width = 20 ;

OpenProcsGridView.Columns.Add(col);

the code above does not set the columnwidth and radgrid view open the column width proportionality to grid size .
can we customize the column width acc to user wants

            

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 11 Aug 2021, 10:44 AM

Hello Piyush,

I have replied to your question in the following forum thread: 

Setting width of column in radgridview does not work. in Community Forums | Telerik Forums

Please follow up with any questions regarding the matter, in there.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Piyush
Top achievements
Rank 1
commented on 15 Aug 2021, 10:11 AM

Thanks Stenly for the support
Tags
Miscellaneous
Asked by
Piyush
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or