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
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.
Rossen Hristov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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
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,
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

So the user dont has to click a button to merge it.
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.

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)
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.