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

GridLine Visibility via condition

8 Answers 271 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 30 Apr 2013, 06:48 AM
Hi,

is it possible to show/hide the GridLines via condition? So if condition is true, then show horizontal Gridline, if not, then hide it?
Want to make it, because Merging is not as possible as in older Application (take a look at attachment).

Or is there any other solution to show grid as attachment with WPF RadGridView?

Best regards,

David

8 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 01 May 2013, 07:39 AM
Hello,

RadGridView has a property called GridLinesVisibility which controls the visibility of the grid lines.

But I am afraid that you cannot make a grid like the one on your picture since RadGridView is an ItemsControls that shows data control and not a spreadsheet component. You might want to check our Spreadsheet component which is closer to what you are looking for.

Kind regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 06 May 2013, 07:57 AM
Hi,
thx for the answer. When u are afraid, then tell me how to merge the rows like in the attached picture?! I don't know why. Or is there another way, i dont get from help?

I tried to take a look at the examples from Spreadsheet, but no example is working fine (in WPF and Silverlight demo).

Best regards,

David
0
Rossen Hristov
Telerik team
answered on 06 May 2013, 08:09 AM
Hello,

For sure you cannot achieve what you have drawn on the picture with RadGridView, which is a data-bound ItemsControl. To summarize -- RadGridView is not what you are looking for.

What you are looking for is something like Excel and our Spreadsheet component is as close as it gets to Excel. I do believe that the Spreadsheet component has this "Merge and Center" button just like the native Excel does. Have you tried it? I am not sure what do you mean with "no example is working fine".

If you have a particular question regarding the Spreadsheet component and how to merge its cells, my suggestion is to open a new forum thread in the respective product forum and post the questions there.

Greetings,

Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dimitrina
Telerik team
answered on 06 May 2013, 08:18 AM
Hello David,

As to the example that is not working, the message should be caused of the culture you use (I suppose it is because your decimal separator is . and not ,). This problem is already resolved with the latest internal build.

You can still check this demo instead. The documentation for this component is available here.
 

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 06 May 2013, 12:44 PM
Its not drawn. It is the grid of the old application. Its only merging the rows.
So the user dont has to click a button to merge it.
0
Dimitrina
Telerik team
answered on 07 May 2013, 11:06 AM
Hello,

I am not sure that I can understand your description. Would you please clarify? 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 07 May 2013, 11:30 AM
The user shouldnt draw or make it with excel.
Theres a dataTable

Id1    Test1      Hello
Id1    Test1      World
Id1    Test2      Hello World

It should be displayed without any user interaction like this:

Id1   Test1      Hello
                      World
        Test2      Hello World

So cells with doubled values should be merged, without any user interaction via excel sheet or something like that.
In winforms, the infragistics grid could do that (attachment on top)
0
Dimitrina
Telerik team
answered on 07 May 2013, 02:57 PM
Hello,

This feature is still not supported from RadGridView. We will plan it after the Q2 version is released, however, we cannot commit to a specific time when it will be ready. It is added as feature request in our PITS and you can vote for it here.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
David
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or