This demo displays contact names selected in the Grid View within the 'Selected values' list box.
To allow row selection, add a command column to the Grid View and set its ShowSelectCheckBox property to true. The column will display check boxes within its cells. End-users can check or uncheck these check boxes to select or de-select corresponding data rows.
The SelectionChanged client-side event is handled to display selected contacts within the list box and the number of selected contacts below it. Contact names are obtained using the Grid View's GetSelectedFieldValues client method. The number of selected rows is returned by the GetSelectedRowCount client method.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Components Installer
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher)
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos