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

[Solved] Color Last Grid Column

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Rodriguez
Top achievements
Rank 1
Michael Rodriguez asked on 22 Sep 2010, 03:22 PM
I would prefer to set the last column of my GridView to a width of "*", but when I do that and make the browser window smaller, it makes all of my columns smaller to try to fit them in the window.

If I set the last column to a width of "Auto", then when I make the browser window smaller I get a horizontal scrollbar like I would expect and everything is good.

The problem is we color our read-only columns a different color.  So now if the last column is read-only, it is one color and the "phantom column" at the end of the grid is the normal color.

Is there anyway to assign a color to that column?  Is it even a column?  How can I access it?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 22 Sep 2010, 03:34 PM
Hello Michael Rodriguez,

No, it is not a column. It is the rows that are trying to fit the width of the gridview.
Is it viable to set the ColumnWidth property of the RadGridView to "*" ?
You have found the other alternative - to set the Width of any of the columns to "*"

All the best,
Veselin Vasilev
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
GridView
Asked by
Michael Rodriguez
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or