Hello friends,
i'm populating a DataGrid with the selected records from DataSet.I'm using a Button to display the contents in dataGrid. but whenever i'm clicking the button the grid is populated with the replicas of the records from dataset.
Can anyone tel me where i'm going wrong in populating the datagrid.
Thanks in advance
The possibility for duplication could be one of the following, kindly check all these and let me know.
1- Execute same query in Query analyzer and see if there is duplication in database
2- Check if the the dataset is a page level member and you could be filling it at load as well as on button click. (mostly you could get this prob in web if you dont use IsPostBack property to check either the page is first time executing or posted back from server.
There could be more possibilities but need to know how you are fetching data and binding to grid.
Cheers