Problem adding a row in a datagrid (in userinterface)

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I'm using a datagrid (populated by ms access table) with a tablestyle... and
when I run the program and wants to add a record It won't let me. I add the
right information in all the columns and then when I leave the row disapears
without any explanation.

First I figured it was something in the databas, a special datatype or a
mandatory column I did'nt fill in or a column that was empty (cause I have
tables styles and maybe forgot a column) but then I added and showed all the
columns in the tablestyle as well.. and it still won't let me add a record.
I can change existing records (added directly in the databse) and save, not
a problem but I can add new ones.

What's bugging me the most is that there are no error throwing or any kind
or error message that I have found so I can't go to the source of this.

What should I do to figure out whats' wrong?

/Lars
 
Oh ... I found something... sometimes it actually saves in the database with
with some columns missing (some impotant ones) and those are automatically
filled with Nulltext Property in the Table Style... does not the nulltext
property add to the dataset ? is it just something that shows in the grid?

/Lars
 
I fixed it... I used some of what Cor said in one of my earlier messages
and modified the datasource instead! The DefaultValue property

/Lars
 
Back
Top