Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have gridview in my aspx page.I want to do rowupdating event but it shows
following error
Callbacks are not supported on TemplateField because some controls cannot update properly in a callback. Turn callbacks off on 'GridView1'.
Posted
Updated 23-Feb-11 2:03am
v2
Comments
senguptaamlan 23-Feb-11 8:08am    
please provide your GridView declaration block from the aspx/ascx file

Link1[^]and Link2[^] might help you to solve your problem.
 
Share this answer
 
Try couple of things[^]:
1. Put the Gridview data binding in !IsPostback condition.
2. Set Viewstate as false for the gridview


If this does not resolve then, have a look at this similar discussion: http://www.dotnetspider.com/forum/162893-Gridview-problem.aspx[^]

It says: If the Columns collection contains a column that does not support callbacks, such as TemplateField, a NotSupportedException exception is raised.

Knowledgebase is here: GridView.EnableSortingAndPagingCallbacks Property [^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900