Tuesday, April 17, 2012

Configuring Data View Selection Mode

The selection mode of data rows on all pages of your application can be controlled in the Project Wizard settings.

You can also configure the selection mode for the specific data views.

Create a Northwind sample and activate the project Designer.

Select Employees / container1 / view1 (Employees, grid1) node on the Pages tab in the Project Explorer.

Data view selected in the Project Explorer

Change Selection Mode property and click OK button to save the changes.

Data view 'Selection Mode' property in Project Designer

Click Browse on the Project Designer toolbar to view the application.

Employees data view with the Selection Mode set to Single.

Employees data view with the 'Selection Mode' set to 'Single'.

Employees data view with the Selection Mode set to Multiple.

Employees data view with the 'Selection Mode' set to 'Multiple'.

The standard action Delete supports the Multiple selection mode. Multiple selection also works with batch editing of records.

You can create custom business rules or an SQL action to implement business logic applicable to multiple selected data rows.

No comments:

You can find more about Code OnTime Generator, Data Aquarium Framework, and other great products here.


© 2010 Code OnTime LLC. Intelligent code generation software for ASP.NET. Visit us at http://codeontime.com