public List<clsA> GetAll( ) { List<clsA> dataList = new List<clsA >(); //populate the list with data and after that you can add records into the list //And finally this will be the data source of your dataGrid control. return dataList; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)