Maybe you named it different Customers Sql Data Source. For example if you have Sql Data Source1 as your Grid View data source, your Row_Deleting event would be: Here is a trick with what you want to achieve. Its hard to get selected row and data key in Row Deleting Event But it is very easy to get selected row and datakeys in Selected Index Changed event. So then user913947, where do you save the list of items ?If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Hello Debra, As I understand it, you want to implement custom row updating.
In this case, I suggest that you handle the ASPx Grid View. To learn more about it, please see the following articles: Customize data updates using the Row Updating event Editing an in-memory dataset If you want to handle the ASPx Grid View.
" Select Command="SELECT a.tenantcode, a.name, a.fixedrate, a.percentrate, a.percentage, b.locationd, c.status FROM TENANTNEW AS a INNER JOIN LOCATION AS b ON a.
Now you can ask questions directly to me on my new site ASPForums.
I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.
Within the Item Template I have an Image Buttong with a Command Name of "Edit".
Once, you got the values you just need to send them to the database.
HTML CODE: C# Code Behind: private void Bind Data() protected void gv Categories_Row Editing(object sender, Grid View Edit Event Args e) protected void gv Categories_Row Updating(object sender, Grid View Update Event Args e) Hello Azam, Thanks for the prompt reply. Find Control("txt Category Description") as Text Box). Regards, Amol I am attempting to get the rowupdate event working with a gridview.
Row Updated event for another purpose, than I suggest that you refer to the following report: Row Update Grid View Hi, I had previously reviewed the two projects you referenced. The sample I carved out is referenced below but I don't know if, after a row updating event has completed, I can use the newly updated variables with a stored procedure.
Do you an example of ROWUPDATED that I could reference that executes a stored procedure with parmeters? ASPx Data Updated Event Args) Handles ASPx Grid View1.
Data Bind(); Ah, sorry, I was looking at Abdul Rahman code and there it was an SQL Data Source.