I have application which contain textbox, 2 button and datagridview
In text box user will enter query
button1 click to display query result in gridview and Button2 to export data to excel
My application is working fine
But problem is when i again click button1 it also show the previous data with new one
But i dont want when user click button1 2nd time the prevoius data to be present
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.