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

Merging columns in Grid

5 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nicky
Top achievements
Rank 1
Nicky asked on 29 Oct 2007, 08:09 PM
Hi ,

Can you please provide me solution for merging two colums in RadGridview and removing columns separting line.

Thanks
Sushil

5 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 30 Oct 2007, 11:36 AM
Hello Nicky,

Thank you for this question.

Currently, the RadGridView does not support column merging. This is a useful feature and we have it in our plans. We can't give you a final date when it will be implemented, but when more people request the same feature we will give it a higher priority.

The columns separator depends on the selected theme and can be disabled through the Visual Style Builder. To disable it completely set the GridBorderWidth property of GridTableElement to 0 and GridCellElement.BorderWidth to 0.

We will be glad to help you with any other questions.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nicky
Top achievements
Rank 1
answered on 30 Oct 2007, 01:56 PM
Hi Jack,

Thanks for reply  I am facing problem in disabling column separator not able to find  gridborderwidth where it is located in property box.
Or send me some code snipplet for reomoving colums in radgrid.

Thanks
Sushil
0
Jack
Telerik team
answered on 30 Oct 2007, 03:26 PM
Hi Nicky,

There are two different ways to access the GridTableElement:

  1. Through Visual Style Builder when creating or modifying a theme:
    1. Open the Visual Style Builder
    2. Choose File -> Load Control -> Telerik.WinControls.UI -> RadGridView from menu
    3. Select the GridTableElement element in the "Control Structure" pane
    4. Set the GridBorderWidth property to 0 in "Expert Mode" pane
    5. Select some column header by clicking mouse left button over it
    6. Select the "Initial State" tab
    7. Set the BorderWidth property to 0
    8. Give your theme some name and save the changes
  2. Through code at runtime. Refer to this code snippet below:
GridTableElement table = (GridTableElement)this.radGridView1.GridElement; 
table.GridBorderWidth = 0; 
 

Let us know whether this was helpful. We will be glad to help you further.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nicky
Top achievements
Rank 1
answered on 31 Oct 2007, 08:25 PM
Hi telerik,

Thanks for answer i am not able to find Visual style Builder which it is located.  And other way I have added visual style builder dll to references and written the code snipplet but not working.


Thanks
Sushil
0
Dwight
Telerik team
answered on 01 Nov 2007, 08:36 AM
Hello Nicky,

Thank you for writing.

You don't need to add a reference to the Visual Style Builder dll. You can load the VSB through the Smart Tag > Open Theme Builder. Another way to load the VSB is through the Start menu > All Programs >Telerik > Visual Style Builder.

Greetings,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Nicky
Top achievements
Rank 1
Answers by
Jack
Telerik team
Nicky
Top achievements
Rank 1
Dwight
Telerik team
Share this question
or