mysql - Clearing DataTable Automatically Before Filling -


i had quick question. i'm new .net. there way set datatable clear everytime before fill it? looking @ tableadapter , saw 'clearbeforefill property' , thinking existed dataadapter or datatables specifically.

'construct query dim queryaccountdata$ = "select * " & tablename & " accountnumber=" & accountnumber  'execute query , fill datatable in dataset using adapter new mysqldataadapter(queryaccountdata, connection)     adapter.fill(ds, "holdings") end using  ds.tables("holdings")      'assign variables      rows_lastindex = .rows.count - 1      if rows_lastindex = -1 throw new applicationexception("account number not found in database") etc.... 

thanks!


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -