我有一个以列表格式返回的员工记录列表。如何动态填充网格视图?
ePremiumSubscriber.Subscriber PremSubData = new ePremiumSubscriber.Subscriber();
List<ePremiumSubscriber.Subscriber> premSubList = new List<ePremiumSubscriber.Subscriber>();
ePremiumCustomerDAL.SearchPremSubscriberData(premSubList, sqlQuery);
DataTable dtSearchResults = new DataTable();
dtSearchResults.Columns.Add("psLastName", System.Type.GetType("System.String"));
dtSearchResults.Columns.Add("psFirstName", System.Type.GetType("System.String"));