Rowupdating gridview

As I said, I create the Grid View controls dinamically, I don't have asp tags with the Gidview control.

In fact, the first thing I tried was this protected void Page_Load(object sender, Event Args e) public void DT() protected void GView_Row Updating(object sender, Grid View Update Event Args e) protected void GView_Row Canceling Edit(object sender, Grid View Cancel Edit Event Args e) private void Bind Data() if I execute the method DT when Is Post Back then when the gridview enters in Edit Mode and I tried to Update the cells, the Row Updating never fires and after the post back the gridview keeps on edit mode without my changes, but I need to execute this method when is Post Back, in other way the gridview control fade away.

I removed everything I did with View State and edited the original post again with what I currently got. I cannot sort the Grid View because I'm trying to sort with Your code doesn't have Data Source ID.

In my VB Gridview, I had bind several column from datatable into one single column of the gridview. The following is the VB code: Protected Sub Grid View1_Row Editing(By Val sender As Object, By Val e As Grid View Edit Event Args) 'Set the edit index. Bind Data() End Sub Protected Sub Grid View1_Row Canceling Edit(By Val sender As Object, By Val e As Grid View Cancel Edit Event Args) 'Reset the edit index. Edit Index = -1 'Bind data to the Grid View control.

Dim dt = CType(Session("dt"), Data Table) 'Update the values.

Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.


event is raised when a row's Update button is clicked, but after the Grid View control updates the row.What happens with this is that the source is being created every time the user submits the page.


  1. Pingback:

  2. eric   •  

    They know what they're doing, and they do everything for you.

  3. eric   •  

    Xml Document doc = new Xml Document(); bool change = false; string config File = Path. To know more in detail about below method you can refere private static void Get XMLName Space Info(Xml Document Dom, ref string Xml Namespace Prefix,ref Xml Namespace Manager Xml Namespaces) private static Xml Attribute create XMLAttribute(Xml Document doc, string attribute Name, string attribute Value) private static void Change XMLAttribute Value(Xml Document doc, Xml Node globalization Node, string attribute Name, string new Attribute Value, ref bool change) That’s it about section.

  4. eric   •  

    Porch light to you're looking for, you can qualified as an teacher.

  5. eric   •  

    All is justified by her saying they are just her friends and she is never going to meet them ever.

  6. eric   •  

    But having lived in Edinburgh, I can confirm that literally everyone who lives there is English - possibly because they've all moved up north in search of sexy, bare-chested Scottish men with beards, skirts and no underwear, drinking whisky from the bottle and yelling about socio-political oppression.

  7. eric   •  

    The Total Package is handsome—and you better believe he’s well-groomed.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>