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

Command Column and Header Text

3 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 05 Feb 2009, 10:10 AM
Hi,

I want to set Header Text of command button column as empty string.
When I set empty string, it has replaced it with the value given in UniqueName property!

For now I have set space in Header text and it is showing a space in header text.
My problem is solved with this but I thing this is bug in RADGrid View and Command Column !

Regards,
Divyesh Chapaneri

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Feb 2009, 09:26 AM
Hello Divyesh Chapaneri,

The current behavior is by design and you are not allowed to have an empty string for the HeaderText property. This is valid not only for the GridViewCommandColumn, but for all the column types. We will consider modifying this behavior in one of our next versions, so to allow setting an empty string for the HeaderText.

If you have additional questions, feel free to contact me.

All the best,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fabien
Top achievements
Rank 2
answered on 06 Feb 2009, 12:09 PM
Hi,

I have a little tip to do it, just set :  _Column.HeaderText = " ";

and you'll see nothing on header text :)

Have a nice day.

Fabien
0
Nikolay
Telerik team
answered on 09 Feb 2009, 05:37 PM

Hello Fabien,

Thank you for sharing your approach. Indeed, as Divyesh Chapaneri noticed, the current behavior can be workarounded by setting a single empty space as a string for the HeaderText.

Greetings,

Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Fabien
Top achievements
Rank 2
Share this question
or