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

How can I show GridView title (caption)?

17 Answers 696 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oleksandr Vashchenko
Top achievements
Rank 1
Oleksandr Vashchenko asked on 18 Mar 2010, 03:49 PM
In fact the question is in the thread name. :) I couldn't find any information about how to do it. The only thing I found is that Grid Caption Text is not what I'm looking for.

17 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 23 Mar 2010, 03:25 PM
Hello Oleksandr Vashchenko,

Could you please share with us your idea of a RadGridView caption? Generally, RadGridView does not have a Caption property and if you need to have a text field over RadGridView, you can achieve this by locating a RadLabel on top of the grid.

Sincerely yours,
Svett
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Oleksandr Vashchenko
Top achievements
Rank 1
answered on 26 Mar 2010, 02:09 PM
If there was a caption, then I could adjust gridview position more easily - because there would be no need to adjust label position. Finally, it's logical - grid's title is property of the grid.
0
Svett
Telerik team
answered on 29 Mar 2010, 02:35 PM
Hello Oleksandr Vashchenko,

Thank you for your feedback. We will consider adding this feature if other customers request it. I have updated your Telerik points for the feature suggestion.

If you have further questions feel free to contact us back.

Best wishes,
Svett
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Adolfo
Top achievements
Rank 1
answered on 25 Jun 2010, 12:28 AM
Hi,

I live in Mexico and my English is not very good.

I am trying several tools to see which implements in software development. As i can put a title to each child grid, as shown in the attached.

Thank you.
0
Svett
Telerik team
answered on 30 Jun 2010, 01:51 PM
Hello Adolfo,

Presently, this is not possible with out tool, so we will consider it as feature request.

Regards,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Abin
Top achievements
Rank 1
answered on 10 Sep 2012, 08:54 AM
Hi all,

Can any one help me to add a caption/title for RadGridView.?

0
Svett
Telerik team
answered on 12 Sep 2012, 02:00 PM
Hi Abin,

You can simply position a RadLabel near by the top edge of the grid control, which you can use as a caption of your RadGridView instance. You can vote for the feature request here.

All the best,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Jon
Top achievements
Rank 1
answered on 26 Jun 2017, 04:27 PM
Was this feature ever added? The link to the feature request is no longer valid, and I can't find a Caption property on the RadGridView, so I'm guessing not. But It would really be nice to have! For instance, when exporting the grid to PDF, the caption would be part of the grid instead of having to manually generate it.
0
Dimitar
Telerik team
answered on 27 Jun 2017, 08:29 AM
Hi Jon,

This is still not implemented. Please note that it can be easily implemented with a group box hosting the grid, or a panel and a label.

The request was transferred to our Feedback Portal. You can track its progress, subscribe for status changes and add your comment to it here:  ADD. RadGridView - add caption.

I hope this will be useful.  

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Steven
Top achievements
Rank 1
answered on 29 Aug 2018, 09:45 PM

I find the need for this as I'm using RadSplitContainer and docking the GridView.  When I do this, I cannot utilize a label.

I would think this would be standard...is there any chance we can get this?

0
Dimitar
Telerik team
answered on 30 Aug 2018, 10:23 AM
Hello Steven,

This feature is still not implemented. For your case you can use the following approach as a workaround:
var label = new RadLabelElement();
label.Text = "Grid Title";
label.StretchVertically = false;          
label.Alignment = ContentAlignment.TopLeft;
radGridView1.GridViewElement.Children.Add(label);
radGridView1.GridViewElement.Children[0].Margin = new Padding(0, 20, 0, 0);

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Steven
Top achievements
Rank 1
answered on 30 Aug 2018, 06:53 PM

Hi Dimitar,

Thank you for the fast reply!!! Unfortunalty this did not work and wondering if it's something to do with VB or that I have a grouping pane?  Below is the code I used, I put it in the form load event for now.

            Dim label As New RadLabelElement With {
                .Text = "AR Cash Receipts",
                .StretchVertically = False,
                .Alignment = ContentAlignment.TopLeft
            }
            RgvARCashReceipts.GridViewElement.Children.Add(label)
            RgvARCashReceipts.GridViewElement.Children(0).Margin = New Padding(0, 20, 0, 0)

0
Dimitar
Telerik team
answered on 31 Aug 2018, 10:27 AM
Hello Steven,

I am not sure why this is not working in your case, consider posting a ticket where you can attach the project. I have attached a VB test project that shows this as well. 

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Steven
Top achievements
Rank 1
answered on 31 Aug 2018, 12:30 PM

Hi Dimitar,

I removed RadGroup (Parent Container of the GridView) which I was using for the caption and now it works.  Thank you!

0
Dimitar
Telerik team
answered on 03 Sep 2018, 07:45 AM
Hi Steven,

I am glad that this works well now. Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
gaurav
Top achievements
Rank 1
answered on 25 Jul 2019, 06:40 PM

I used the follwing as suggested by you the WPF application

 var label = new RadLabelElement();
            label.Text = "Grid Title";
            label.StretchVertically = false;
            label.Alignment = ContentAlignment.TopLeft;
            this.ItemsGrid.GridViewElement.Children.Add(label);
            this.ItemsGrid.GridViewElement.Children[0].Margin = new Padding(0, 20, 0, 0);

But I guess this is only for WinForms. Can you tell me how this can be achieved for WPF?

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Jul 2019, 04:42 AM
Hello, Gaurav,   

I would like to note that this forum is related to the Telerik UI for WinForms suite. If you have any inquiries regarding WPF, feel free to submit a question in the relevant forum: https://www.telerik.com/forums Thus, the appropriate support engineers or the WPF community will gladly assist you.

Thank you for your understanding.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Oleksandr Vashchenko
Top achievements
Rank 1
Answers by
Svett
Telerik team
Oleksandr Vashchenko
Top achievements
Rank 1
Adolfo
Top achievements
Rank 1
Abin
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Dimitar
Telerik team
Steven
Top achievements
Rank 1
gaurav
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or