dataGrid

  • Thread starter Thread starter John Shaw
  • Start date Start date
J

John Shaw

When I load the datagrid with data using
sqlDataAdapter2.Fill(dataSet21,"Table");
The Data is loaded with and extra (empty)line at the
bottom of the grid. It has an * to the left of the line.
Is there a way to prevent this empty line from appearing?
I get an exception error when this line is click upon
accidently, since no data is present on the line. Can you
help?
 
Set the Default View's "AllowNew" property to false of
your data table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top