I have a datagrid that is and edit,update and add etc... and everything works in it fine except for add new. It craps out on the add new of my ContactID Field. This is a integer field and is also an Identity field in the database (SQL2000)
If I declare the ContactID field as text it fails (obviously) but when I delcare it as Integer it tells bombs and tells me it is expecting a int32 instead of what I have. Here is the declaration
Dim ContactID As Integer = CType(e.Item.Cells(2).Controls(0), TextBox).Tex
Anyway I guess the question is how do I declare field that is an Identity field in SQL to work on my add new link from datagrid?
btw I am a newb to this so sorry if this is a basic question I cant seem to find the answer in my books or in the help files