N
Necqui Teja
I'm getting the following error when inserting a new row...
DataGridView Default Error Dialog
System.Data.NoNullAllowedException: Column 'ADTBAS' does not allow nulls.
The DataGridView was created by dragging the table from the Data Source.
Column ADTBAS was removed from the DataGridView by way of Edit Columns.
The InsertCommand in the Properties window of my AdSignsTableAdapter (.xsd
file) looks as follows:
INSERT INTO AdSigns
(ADTSTO, ADTUPC, ADTPRI, ADTDTE, ADTLIM, ADTDS1,
ADTDS2, ADTDS3, ADTSIZ, AFTFMT, AFTCOP, ADTMLT, ADTBAS, ADTDIS, ADTITM,
AFTSTO,
AFTUPC)
VALUES
(@ADTSTO,@ADTUPC,@ADTPRI,@ADTDTE,@ADTLIM,@ADTDS1,@ADTDS2,@ADTDS3,@ADTSIZ,@AFTFMT,@AFTCOP,@ADTMLT,@ADTBAS,@ADTDIS,@ADTITM,@AFTSTO,@AFTUPC)
what do I have to do to insert a nonnull value into the ADTBAS field when
ADTBAS in not defined in my DataGridView?
DataGridView Default Error Dialog
System.Data.NoNullAllowedException: Column 'ADTBAS' does not allow nulls.
The DataGridView was created by dragging the table from the Data Source.
Column ADTBAS was removed from the DataGridView by way of Edit Columns.
The InsertCommand in the Properties window of my AdSignsTableAdapter (.xsd
file) looks as follows:
INSERT INTO AdSigns
(ADTSTO, ADTUPC, ADTPRI, ADTDTE, ADTLIM, ADTDS1,
ADTDS2, ADTDS3, ADTSIZ, AFTFMT, AFTCOP, ADTMLT, ADTBAS, ADTDIS, ADTITM,
AFTSTO,
AFTUPC)
VALUES
(@ADTSTO,@ADTUPC,@ADTPRI,@ADTDTE,@ADTLIM,@ADTDS1,@ADTDS2,@ADTDS3,@ADTSIZ,@AFTFMT,@AFTCOP,@ADTMLT,@ADTBAS,@ADTDIS,@ADTITM,@AFTSTO,@AFTUPC)
what do I have to do to insert a nonnull value into the ADTBAS field when
ADTBAS in not defined in my DataGridView?