Hi All,
I have two textboxes and Update Button Control, one gridview control.When i give some values inside these two texboxes.The values should display in gridview in button click even.Can u please help me on this.

Let you have a datatable named dt. In pageload event populate dt from sql server database using sql data adapter. Keep the datatable dt in viewstate. Now when user click add button then decalre a datatable & assign the previous value from veiwstate. Now add rows into the new datatable. Bind datatable to gridview.

Hi,

In the button click event update the database with the testbox values and assign the datatable to the gridview.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.