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

Empty column always added as the last column in RadGridView

6 Answers 799 Views
GridView
This is a migrated thread and some comments may be shown as answers.
veena
Top achievements
Rank 1
veena asked on 26 Nov 2009, 02:00 PM
Hi,

We use a radgridview. We have set the autogeneratedcolumns=false. The problem is always an empty column is added as the last column in the radgridview.

Can you please help to get rid of the column.


Thanks in advance.
VR

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Nov 2009, 02:06 PM
Hi,

You most probably refer to the stretched grid rows? Actually this is not additional column - rows are just measured with available width exactly in the same way as in standard Silverlight DataGrid.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
veena
Top achievements
Rank 1
answered on 26 Nov 2009, 02:15 PM
Hi,

Thanks for the immediate response.

How can we prevent that. We dont want the column width to be hardcoded.

Thanks in advance
VR
0
Vlad
Telerik team
answered on 27 Nov 2009, 08:35 AM
Hi,

I don't believe that we have hard-coded column width. By default grid columns are with auto width (depends on the cells content) you can however apply different behavior using ColumnWidth property of the grid (for all columns) or Width property per column. For example if you want to stretch all columns you can set  ColumnWidth="*" - you can find screenshot attached.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
veena
Top achievements
Rank 1
answered on 28 Nov 2009, 03:15 AM
Hi,

Thanks it solved the issue.

VR
0
tegbir
Top achievements
Rank 1
answered on 21 Aug 2014, 11:59 AM
Hi, I have set column width to * in GridViewDataColumn. After this change, horizontal scrollbar is not working for Grid. Please help
0
Boris
Telerik team
answered on 21 Aug 2014, 02:37 PM
Hello Tegbir,

By setting the Width property of the GridViewDataColumn to a string that includes the "*" character, you are telling the column to take the remaining available space. This means that if you have enough or extra space the column will allocate it to its width, thus the horizontal scrollbar will not be shown. However, if you have more columns that can be displayed on one screen, the horizontal scrollbar still does not work, would you please provide us with a sample project that reproduces the issue?

Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
veena
Top achievements
Rank 1
Answers by
Vlad
Telerik team
veena
Top achievements
Rank 1
tegbir
Top achievements
Rank 1
Boris
Telerik team
Share this question
or