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

Hide the CurrentRow Indicator

3 Answers 451 Views
GridView
This is a migrated thread and some comments may be shown as answers.
TechManagers
Top achievements
Rank 1
TechManagers asked on 01 Sep 2009, 10:40 PM
Is there a way to hide the column showing the > image for the current row?

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Sep 2009, 12:11 PM
Hi Tom Ottman,

Thank you for the question.

You can hide the image programmatically by setting it to null:
((GridTableElement)this.radGridView1.GridElement).CurrentRowHeaderImage = null

Another option for you is to set the CurrentRowHeaderImage to null in a custom theme. When you load RadGridView control in Visual Style Builder, just navigate to the GridTableElement in the Control Structure window and then in the Expert Mode window locate the CurrentRowHeaderImage property, right-click and choose Reset. Then save your theme and apply it to a RadGridView control instance.

I hope this helps. If you have additional questions, feel free to contact me.

Sincerely yours,
Nikolay
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
TechManagers
Top achievements
Rank 1
answered on 03 Sep 2009, 03:51 PM
Maybe I was not clear in my original thread post.

I want to hide the entire column not the image.

The current row is already indicated by a row color change, so I want to remove the current row select column and recoup that screen space.
0
Nikolay
Telerik team
answered on 03 Sep 2009, 04:06 PM
Hello Tom Ottman,

Thank you for clarifying your enquiry.

In order to hide the desired column, you should set the ShowRowHeaderColumn of the MasterGridViewTemplate to false:
this.radGridView1.MasterGridViewTemplate.ShowRowHeaderColumn = false

If you need additional assistance, feel free to contact me.

Greetings,
Nikolay
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.
Tags
GridView
Asked by
TechManagers
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
TechManagers
Top achievements
Rank 1
Share this question
or