Hi,
I put a button in the header of the ASPxGridView ti insert a new record. The button execute this stament:
protected void btnStorageSpaceMapNew_Click (object sender, EventArgs and)
{
ASPxGridViewStorageSM.AddNewRow ();
}
A form was displayed on the GridView but i saw the key fields of the table was protected. Why?
I wrote my data in the editable fields but when click on update I had the following message (for obvious reasons)
Cannot insert the value NULL into column “PrimaryCode”, table “DRAMS.dbo.PRIMARYCODES”; column does not allow nulls. INSERT fails. The statement has been terminated.
How I resolve this problem? Why the key fields was protected?