Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
datagridview last row problem
Shovan Saha
Sep 15 2017 1:13 PM
143
Reply
I have a datagridview like this but I do not want the last row(blue color), please help.
I have used:
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();
}
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Career Choice: Can I choose Windows Forms based Project
jQuery (click OK button and it should move to next tab)