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

WindowsForm radGridView

2 Answers 161 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sil
Top achievements
Rank 1
Sil asked on 15 Aug 2007, 09:15 PM
Hi,
As long as I read, there are several functions not available yet in WindowsForm radGridView.

If I place a radGridView in a UserControl, I wonder how could I :

1) allow consumer of the UserControl to make changes on columns, such as : enable/disable, change name, ...
2) import all the fields from other grid

thank you,
best regards

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 16 Aug 2007, 04:59 PM
Hi Sil,

RadGridView API supports this functionality. All you need to do is to expose the needed properties in your UserControl. Follow these steps:

  1. Place a RadGridView in a UserControl
  2. Create some new properties: e.g. MasterGridViewTemplate and MasterGridViewInfo in your UserControl (they will point to the corresponding RadGridView properties)

    public GridViewTemplate MasterGridViewTemplate
    {
           get { return this.radGridView1.MasterGridViewTemplate; }
    }

    public GridViewInfo MasterGridViewInfo
    {
           get { return this.radGridview1.MasterGridViewInfo; }
    }


  3. Use these properties to access grid's functionality.

We will be glad to answer any additional questions you may have.
 

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sil
Top achievements
Rank 1
answered on 16 Aug 2007, 08:14 PM
Hi Jack,

thank you for your prompt reply..I'll try to do so..

Best regards,
Sil
Tags
GridView
Asked by
Sil
Top achievements
Rank 1
Answers by
Jack
Telerik team
Sil
Top achievements
Rank 1
Share this question
or