Hello,
I am a newbie and just started to develop an application that mimics roboform.
I designed a table with an auto increment column (column name is "WebSiteIndex") and when i try to add a new row from the code like this :
MainDataSet.WebLoginDataRow loginRow = m_DataSet.WebLoginData.NewWebLoginDataRow();
loginRow.UserName = "alon";
loginRow.Address = "333";
loginRow.PasswordFieldName = "444";
loginRow.PasswordFieldValue = "sss";
m_DataSet.WebLoginData.AddWebLoginDataRow(loginRow);
m_WebLoginTableAdapter.Update(m_DataSet.WebLoginData);
I get an exception. I even tried putting "loginRow.WebSiteIndex = null" but that also can't be done since the column is auto incremented and therefore
defined as "nut null".
How can I insert a new row and make the auto incremented column advance correctly?
Thanks!