Пример #1
0
        /// <summary>
        /// Creates the data table with some dummy data.
        /// </summary>
        /// <returns>DataTable</returns>
        private static DataTable CreateDataTable()
        {
            DataTable dt = new DataTable();
            //for (int i = 0; i < 10; i++)
            //{
            //    dt.Columns.Add(i.ToString());
            //}

            //for (int i = 0; i < 10; i++)
            //{
            //    DataRow dr = dt.NewRow();
            //    foreach (DataColumn dc in dt.Columns)
            //    {
            //        dr[dc.ToString()] = i;
            //    }

            //    dt.Rows.Add(dr);
            //}
            BO_CAP_CHUNGCHI ccc = new BO_CAP_CHUNGCHI();

            return(dt = ccc.getCAP_CHUNGCHI_WithName());
        }
Пример #2
0
 private void ShowData()
 {
     // getCAP_CHUNGCHI_WithName
     gridCertificate.DataSource = ccc.getCAP_CHUNGCHI_WithName();
 }