By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

Update button is not getting fired.

P: 1
Hi I am using GridView in ASPX page

Expand|Select|Wrap|Line Numbers
  1. <asp:GridView AutoGenerateEditButton ="false" id="siGridView" runat="server" 
  2.                                   Font-Names="Cordia New" Font-Size="Smaller" 
  3.                                   AllowSorting="True" AllowPaging ="true" PageSize="20" 
  4.                                   HorizontalAlign="left" 
  5.                                   onsorting="switchGridView_Sorting" 
  6.                                   Font-Bold="False" 
  7.                                   onrowcancelingedit="switchGridView_RowCancelingEdit" 
  8.                                   onrowediting="switchGridView_RowEditing" 
  9.                                   onrowupdating="switchGridView_RowUpdating" Width="1170px">
  10.                                 <RowStyle HorizontalAlign="left"  BackColor="#E6E6FA" Font-Size="Medium"/>
  11.                                 <SelectedRowStyle Font-Size="Medium" />
  12.                                 <HeaderStyle HorizontalAlign="Center" BackColor="#CCCCFF" ForeColor="#003366" />
  13.                                 <columns>
  14.                                     <asp:commandfield 
  15.                                         showeditbutton="true"
  16.                                         ControlStyle-Height="25px"
  17.                                         ControlStyle-Width="75px"
  18.                                         ControlStyle-Font-Names="Cordia New"
  19.                                         ControlStyle-Font-Size="12pt"
  20.                                         ControlStyle-Font-Bold="true"
  21.                                         ButtonType="Button"
  22.                                         headertext="Edit">
  23.                                         <ControlStyle
  24.                                             Font-Bold="True" 
  25.                                             Font-Names="Cordia New" 
  26.                                             Font-Size="10pt" 
  27.                                             Height="20px" 
  28.                                             Width="40px" ForeColor="Black">
  29.                                         </ControlStyle>
  30.                                     </asp:commandfield>
  31.                                 </columns>
  32.                                 <AlternatingRowStyle BackColor="White" />
  33.                     </asp:GridView>
  34.  
All Gridview command is getting fired,but update button is not getting fired.
Please help me to resolve this issue.

Thanks,
Shekhar
Feb 23 '10 #1
Share this Question
Share on Google+
3 Replies


tlhintoq
Expert 2.5K+
P: 3,525
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Feb 23 '10 #2

MrMancunian
Expert 100+
P: 569
Put a breakpoint at switchGridView_RowUpdating in your .vb-/.c-code and see what's wrong... If that doesn't work, post some code that handles the switchGridView_RowUpdating...

Steven
Feb 24 '10 #3

Expert 100+
P: 210
Can you post your code for row updating event (switchGridView_RowUpdating) ?
Feb 25 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.