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

Some properties I need

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Juan Pablo
Top achievements
Rank 1
Juan Pablo asked on 30 Oct 2008, 10:01 PM
Hi experts!

I use this properties in the winform datagridview:
  • AllowUserToAddRows
  • AllowUserToDeleteRows
  • ColumnHeadersHeightSizeMode
  • Columns.AddRange
  • RowHeadersVisible
I can't find nothing like that in the Rad control.

Please help me ...




1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 04 Nov 2008, 04:21 PM
Hi Juan Pablo,

Thank you for your interest in our products.

Please find the answers for the properties needed below:

  • AllowUserToAddRows: In RadGridView, you should call the AllowAddNewRow of the MasterGridViewTemplate:
    this.radGridView1.MasterGridViewTemplate.AllowAddNewRow = false
  • AllowUserToDeleteRows: You should call the AllowDeleteRow of the MasterGridViewTemplate:
    this.radGridView1.MasterGridViewTemplate.AllowDeleteRow = false
  • Currently, RadGridView does not implement this property. The height of the column headers could be adjusted only through the API:
    this.radGridView1.GridElement.TableHeaderHeight = 50; 
  • Columns.AddRange: Currently, the Columns collection does not implement AddRange method, but Add method only. We will consider addressing this feature in one of our next releases.
  • RowHeadersVisible: Set the ShowRowHeaderColumn of the MasterGridViewTemplate:
    this.radGridView1.MasterGridViewTemplate.ShowRowHeaderColumn = false
I hope this helps. If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Juan Pablo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or