Пример #1
0
        public void populatePendingRecord()
        {
            lblStatus.Text         = "";
            lblVerifiedStatus.Text = "";
            var mList = objStudent.GetUnVerifiedStudentList(txtSearchText.Text, false);

            lblRecord.Text = mList.Count.ToString() + " No. of records found";
            dgvResult.Rows.Clear();
            if (mList.Count > 0)
            {
                int r = 0;
                foreach (StudentMasterInfo m in mList)
                {
                    dgvResult.Rows.Add();
                    dgvResult.Rows[r].Cells[1].Value = m.NatureOfEntry;
                    dgvResult.Rows[r].Cells[2].Value = m.StudentId;
                    dgvResult.Rows[r].Cells[3].Value = m.RegistrationNo;
                    dgvResult.Rows[r].Cells[4].Value = m.Name;
                    dgvResult.Rows[r].Cells[5].Value = m.DateOfBirth;

                    r++;
                }
                lblStatus.Text         = "";
                lblVerifiedStatus.Text = "";
            }
            else
            {
                lblStatus.Text      = "No Record found";
                lblStatus.ForeColor = Color.Red;
            }
        }