Refresh datagridview error

Oct 24 2010 12:50 PM
Hello i have problem

I have button TsmRefresh it must be update data from selling table which is in sql server database

when i press this button in datagridview adding same data which is already in datagridview. everything is double. its make same evry press in this button.
Im using c# what is problem can anybody say to me?


i dont use outer join
i have columns (ID, ProductID(idont use this), BarCode, ProductName, Price, SelfPrice, PriceWithOutAWD, Comment, DateTime, Quantity) i use primary key only ID

 private void TsmRefresh_Click(object sender, EventArgs e)
{
sqlDataAdapter1.Fill(dataSet11);
}


Answers (2)