hi all..
i'm just a beginner in vb.net..so i need a solution for a problem..what i'm trying to do is show all the records in a table in a datagrid. it works fine the first time..but when i click on the button that does this again, the grid has duplicate values..so if the button is pressed thrice..the records are repaeated 3 times. so how do i stop this ??
here myAdapter is a DataAdapter n ds is a DataSet.Code:myAdapter = New OleDbDataAdapter("select * from Login", dbConn) myAdapter.Fill(ds, "Login") grdDetails.DataSource = ds
any help will be appreciated...thnx a lot




Reply With Quote