remove blank row in datagridview c# code example Example: remove gray row at bottom of datagridview myDataGridView.AllowUserToAddRows = false;