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

Radgridview's child table column's color

6 Answers 171 Views
GridView
This is a migrated thread and some comments may be shown as answers.
venkateshwarreddy
Top achievements
Rank 1
venkateshwarreddy asked on 08 Oct 2008, 12:37 PM
Hi all,
Please may any one knew how to set color to column's of child tables in radgridview (wpf) for hierarchy example . I was searching for long time but no luck.
I will be thankfull if any one may reply as soon as possible.

6 Answers, 1 is accepted

Sort by
0
Dimitar Dobrev
Telerik team
answered on 09 Oct 2008, 09:06 AM
Hello Venkateshwarreddy,

The attached project uses a custom control template for the expandable rows. In the template, an event handler listens for the GridViewDataControl.Loaded event and changes the background colour of the columns.

We hope you will find this sample useful. Please, do not hesitate to ask any other question that come to mind.

Best wishes,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
venkateshwarreddy
Top achievements
Rank 1
answered on 10 Oct 2008, 05:54 AM
Hello Dimitar,

Thanks for reply and also i need to have column's lines of child table to be appear when i  choose any node from parent.

or

By default we get Column lines for parent table in Radgridview hierarchy(similarly i want in child table).

I will be thankfull to you if u reply as soon as possible.
0
Dimitar Dobrev
Telerik team
answered on 10 Oct 2008, 01:02 PM
Hello again, Venkateshwarreddy,

To see vertical lines between the columns, you simply need to set the GridViewColumn.VerticalGridlinesBrush property beside the GridViewColumn.Background property. I am sending you a slightly modified version of the example project, in which, in the same event handler for RadGridView.Loaded, I set VerticalGridlinesBrush for both columns to the default (theme) value. Naturally, you can set this brush to any value you wish.

If you have any other questions, you only need to write back to us.

Regards,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
venkateshwarreddy
Top achievements
Rank 1
answered on 10 Oct 2008, 05:19 PM
Thank you very much.

But if have many number of columns ,i should write code for each column,  or any  alternate is there.

Thank you.
0
venkateshwarreddy
Top achievements
Rank 1
answered on 13 Oct 2008, 11:53 AM
Hi team,

1)any idea how to make cell in edit mode, when press on TAB
2)any idea to edit cell on single click.


Kindly help me,I will be thankfull to you.

0
Dimitar Dobrev
Telerik team
answered on 13 Oct 2008, 04:11 PM
Hi Venkateshwarreddy,

If you want each column to have a different background and a different brush for the vertical lines, then you have to write your code separately. However, if you want either the background or the vertical lines to be the same for all columns, you can simply iterate through the GridViewDataControl.Columns collection and set the properties you wish. We are resending you the example with this implementation included.

As far as your second question is concerned, we just recently answered a similar request: please, check here. Of course, you can also receive the the pre-release build we offer there, on your request.

We look forward to hearing from you again.

Kind regards,
Dimitar Dobrev,
the Telerik team

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