Hi everybody,
I have just started using VB.NET. I am first trying to make an entry module using ADO.NET. I have bound text boxes to the columns of the table. When the user clicks on Add, an empty row should be created in the datatable. The AddNewRow method works if there are existing rows in the table, because in that case adapter.Fill() fills the datatable. But when there are no existing rows in the table, adapter.Fill() generates an error. I want the datatable to be filled with an empty structure with no rows. Is that possible without hard coding the creation of the empty datatable?