hey folks in this blog we are going to build a basic data table using visual force page.
Here we will be displaying Account data for demo. You can query any sObject as per you requirement
Apex Class
public class dataTableCon {
List accounts;
public List getAccounts() {
return [SELECT Name, Rating, Industry FROM Account LIMIT 20];
}
}
DataTable.vfp
Account Name
Rating
Industry