Adding a new row in a DataGrid
-
When I move the cursor to the last row in my DataGrid a new record is added to the DataView. The new row fields contain DBNull values. When the new row is added how can I automatically assign values to these fields so they are not null? Thanks
Programmatically you do it like this. DataSet1.Tables("TABLE_NAME").Columns("COLUMN_NAME").DefaultValue = "Me" Otherwise go into your dataset properties and then tables and finally columns. Once there click on your column and find the property DefaultValue. HTH, Jason
-
Programmatically you do it like this. DataSet1.Tables("TABLE_NAME").Columns("COLUMN_NAME").DefaultValue = "Me" Otherwise go into your dataset properties and then tables and finally columns. Once there click on your column and find the property DefaultValue. HTH, Jason