datagridview questions

tcl4p

Well-known member
Joined
Feb 29, 2008
Messages
48
Programming Experience
1-3
I have a datagridveiw, which is working, but I have one question and one how to.
The question is how do I remove the empty row that is added to the end of the grid. This would be the row with the * on the left. I have the grid as readonly so I'm not sure why it's showing. It's not a big problem, but I had to add code to check for a null condition in case the user clicked in that row.

The how to has to do with selecting and highlighting the entire row when the user clicks in any cell.

Thanks,
Tom
 
VB.NET:
DataGridView1.AllowUserToAddRows = False

and

VB.NET:
DataGridView1.SelectionMode = FullRowSelect
 

Latest posts

Back
Top