示例#1
0
        private void frmQuyDinh_Load(object sender, EventArgs e)
        {
            gridQD.AutoGenerateColumns = false;
            List <QUYDINH> source = QuyDinh.SelectAll();

            foreach (var i in source)
            {
                gridQD.Rows.Add(new string[]
                {
                    i.MaQD,
                    i.TenQD,
                    i.GiaTri.ToString()
                });
            }

            gridQD_Click(sender, e);
        }