strange datacolumn autoincrement problem

lamy

Regular
Joined
Dec 12, 2005
Messages
56
Location
under your bed
was trying to add this column after i populate my datatable

Visual Basic:
            dt.Columns.Add(New DataColumn("ID", GetType(System.Int16)))
            dt.Columns("ID").AutoIncrement = True
            dt.Columns("ID").AutoIncrementSeed = 1000

the column is added but it doesnt show the value after i bind it to a datagrid/gridview

anyone havin this same prob?

btw, im using VS 2005 Express
 
Back
Top