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

ReadOnly

1 Answer 170 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mitch Thraves
Top achievements
Rank 2
Mitch Thraves asked on 25 Apr 2007, 09:51 AM
Hi guys

Unlike the DataGridView, the RadGridView seems to be missing a readonly property, is it called something else? I basically want to stop people from editing the data.

Also, is there some more RadGridView documentation in the pipeline. I really need to know how to code a connection to SQL Server and handle inserts, updates and deletes.

Regards

Mitch

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 26 Apr 2007, 06:29 AM
Hello Mitch,

With the current version of the RadGridView, you can prevent users from editing data, using the following properties of the RadGridView.MasterGridViewTemplate:

  • AllowAddNewRow - this prevents from adding new rows (by default is false)
  • AllowEditNewRow - this prevents from editing
  • AllowDeleteRow - this prevents from deleting a row

About setting connections, you could use the standard editor for DataSource property at design-time and then the RadGridView will automatically take care for adding, editing and deleting records.

Currently the API of RadGridView, concerning these features, isn't entirely polished and we're working on extending it for the next releases.  If you have any suggestions we'll highly appreciate sending them to us. You have a point, by mentioning the ReadOnly property thus we will most probably add it for the next release. Any suggestion you may have about this functionality are most welcome.

Greetings,
Georgi
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Mitch Thraves
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Share this question
or