Gridview : Need help about it [modified]
-
I am trying to link the following buttons of my gridview "update, delete and insert". I does not work since last week. So the message error is in french, anyway it means "the objectdatasource can't find the delete method (or insert and update). If someone can give a help about that.Thanks
modified on Tuesday, March 31, 2009 5:10 AM
-
I am trying to link the following buttons of my gridview "update, delete and insert". I does not work since last week. So the message error is in french, anyway it means "the objectdatasource can't find the delete method (or insert and update). If someone can give a help about that.Thanks
modified on Tuesday, March 31, 2009 5:10 AM
Try adding an update, delete and insert methods to your SqlDataAdapter. Duh.
var question = (_2b || !(_2b));
-
Try adding an update, delete and insert methods to your SqlDataAdapter. Duh.
var question = (_2b || !(_2b));
-
I am trying to link the following buttons of my gridview "update, delete and insert". I does not work since last week. So the message error is in french, anyway it means "the objectdatasource can't find the delete method (or insert and update). If someone can give a help about that.Thanks
modified on Tuesday, March 31, 2009 5:10 AM
-
I am trying to link the following buttons of my gridview "update, delete and insert". I does not work since last week. So the message error is in french, anyway it means "the objectdatasource can't find the delete method (or insert and update). If someone can give a help about that.Thanks
modified on Tuesday, March 31, 2009 5:10 AM
You have to add the method on on deleting event of gridview and onselectedindexchanging event If you do so I may work Thank You Vinod Kr.
-
You have to add the method on on deleting event of gridview and onselectedindexchanging event If you do so I may work Thank You Vinod Kr.
-
Hi, it's done about de gridview (objectdatasource properties) but i did not done anything about "onselectedindexchanging event" can you explain more about dis last point cuze i don't have many skills on it. Thank you
Hi, You have to just write code on selectedindex change event I am sure you will be able to do that...... There is an event on Gridview selectedindex changing on that You can add the method Vinod Kr. Software Engineer EBC Publishing Lucknow
-
Hi, You have to just write code on selectedindex change event I am sure you will be able to do that...... There is an event on Gridview selectedindex changing on that You can add the method Vinod Kr. Software Engineer EBC Publishing Lucknow
Hi I have tried this : protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Metier_Taxi.Gestion_Utilisateurs Utilisateur = new Metier_Taxi.Gestion_Utilisateurs(); Utilisateur.Supprimer(Convert.ToInt64(GridView1.SelectedRow.Cells[1].Text)); } Do you notice anything wrong or something to add ? Thanks
-
Hi I have tried this : protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Metier_Taxi.Gestion_Utilisateurs Utilisateur = new Metier_Taxi.Gestion_Utilisateurs(); Utilisateur.Supprimer(Convert.ToInt64(GridView1.SelectedRow.Cells[1].Text)); } Do you notice anything wrong or something to add ? Thanks
GridView1.SelectedRow.Cells[1].Text is right if you have not used template...... If it is stil giving error please try this Gridview.Rows[e.NewSelectedIndex].Cells[1].Text this might work if you are not using any template in gridview Hope This Will Work Thank You Vinod Kr.