Hi
I got a table with 1 column set to auto increment(Identity column).
In my code, I have a check point to check whether it is an auto increment column.
But the problem here is that it always return false even the column is an identity column.
foreach (DataColumn drCol in dt.Columns)
{
if (drCol.AutoIncrement == false)
{
stringBuilder += drCol.ColumnName;
stringBuilder += "=";
stringBuilder += "@" + drCol.ColumnName;
stringBuilder += ",";
}
lblError.Text = lblError.Text + drCol.AutoIncrement;
}
Pls help.
View Complete Post