add selective column to datagrid - DataForm.NET Sample

This example shows how to use selective checkbox column. Selective checkbox column is the first column in the GridForm which is used to get the selected row index and relevant primary key information of each row.

Pick a Theme:

Employees 
 Employee
Employee Name
CityHire DateTitlePhoto
  

Employee ID:1
Davolio, NancySeattle5/1/1992Sales Representative

Employee ID:2
Fuller, KayTacoma8/14/1992Vice President, Sales

Employee ID:3
Leverling, JanetKirkland4/29/1992Sales Representative
1 - 3 / 22 RecordsPage / 8 
Birth Date12/8/1948
Address507 - 20th Ave. E.Apt. 2A
RegionWA
Postal Code98122
CountryUSA
Home Phone(206) 555-9857
Birth Date2/19/1952
Address908 W. Capital Way
RegionWA
Postal Code98401
CountryUSA
Home Phone(206) 555-9482
Birth Date8/30/1963
Address722 Moss Bay Blvd.
RegionWA
Postal Code98033
CountryUSA
Home Phone(206) 555-3412

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Employees by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to GridForm tab.
  3. To show selective checkbox column as the first column in the GridForm, the checkbox for Show Selective Checkbox Column should be checked on.
  4. To know the indexes of selected row and their respective primary key information, use eGridForm.SelectedItemIndexes and eGridForm.SelectedDataKeys Property.
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.