I have a datagridview like this but I do not want the last row(blue color), please help.
using (OleDbCommand cmd = new OleDbCommand("SELECT * FROM LalPension", con))
{
cmd.CommandType = CommandType.Text;
using (OleDbDataAdapter da = new OleDbDataAdapter(cmd))
{
using (DataTable dt = new DataTable())
{
da.Fill(dt);
dataGridView1APen.DataSource = dt;
dataGridView1APen.CurrentCell = dataGridView1APen.Rows[dataGridView1APen.Rows.Count - 1].Cells[0];
txtAPenEnterSoinikNo.Focus();
specialFontEnglish();
specialFontBangla();
dgvCellColorYellow();
lblCountAPen();
}
}
}