Clear values of textbox in gridview afer submit buttton

Posted by Sweetchuku under ASP.NET on 4/3/2010 | Views : 5640 | Status : [Member] | Replies : 2
Hi,
I am not able to refresh data of gridview after submit button is clicked? could anyone help me.?




Responses

Posted by: Venkatu on: 4/3/2010 [Member] Starter

Up
0
Down
You have to rebind the Data ie :Gridview1.DataBind() - if you are using sqlDataSource else

call the method ie: Binding data to Gridview

Venkatesan.M
http://venkat-dotnetsnippets.blogspot.com/

Sweetchuku, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/3/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
well said(Venkatu). you need to call the function that binds the grid again. if you are usinga dataset, then clear it first before you bind it.

Thank you for posting at Dotnetfunda
[Administrator]

Sweetchuku, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response