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

Column width - DataTabel source

1 Answer 11 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 10 Feb 2014, 12:26 PM
Hi,

i bind a DataTable to my RadGridView like this:

​DataTable source = new DataTable();
source.Columns.Add("Nr.", typeof(int));
source.Columns.Add("Modul", typeof(string));
source.Columns.Add("ID", typeof(string));
source.Columns.Add("Nummer", typeof(string));
source.Columns.Add("Suchwort", typeof(string));
source.Columns.Add("Inhalt", typeof(string));
source.Columns.Add("Feld", typeof(string));


How do i set the width of each column in code behind?

Thanks a lot
Best Regards
MJ

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Feb 2014, 12:38 PM
Hello,

You could specify Width for the columns of RadGridView (available in RadGridView.Columns collection). There is not way to specify this through the source collection though. 
 
Regards,
Didie
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
GridView
Asked by
ITA
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or