David I suggested that the Row Updating function was being blocked by the . Data Bind() in the Row Command event so that only the Edit command will activate it (take it out of Row Editing). Twice for Row Command (1 for Row Editing and 1 for Row Canceling) and once for Row Editing. I am going to try and create this not as a web application but rather as a website and see if I notice any differences.
Data Bind() in Row Editing, I said nothing about what might happen if you removed it. Then set your breakpoints in Row Command, Row Editing, and Row Updating and we'll see what happens. David OK, I'm offically out of bullets, at least for now. If I get some time, I'll see if I can duplicate this, but I'm suspecting there's something out there that neither of us have looked at yet.
Your solution only works if only one of the checkboxes (in my solution) is checked.
I assume I need to split the string but in what Edit or Row method should that be done in?
AARP_DATA_D1_Bill Matri "The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years.
I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing.
Scenario: I am using the Row Updating Event of the Gridview to do updates because I need more flexibility than the SQLDatasource Update provides.
In the code below I do get the Country ID and Region ID but they are the original values not the new ones selectedfrom the Edit Mode row.
The Textbox values come back as empty, which is even stranger. Below is the code for both the Grid View HTML and the C# code behind.
Code (C# On Updating Event) protected void gv Main_Row Updating(object sender, Grid View Update Event Args e) Gridview HTML Code x WHERE (Rec ID = @Rec ID) " Select Command="SELECT Rec ID, Company ID, Region ID, Country ID, Company Code, Company Name, App ID, Country Code, Country Name, Region Company ID, Region, Model Name, Translate Model, Price, Last Updated On, Last Updated By FROM dbo.
Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S. The Row Update event will load a copy of the product table from the database after successfully updating a row.
Hi cpkilekofp; I removed the Insert command button and put in an event for Command to see if the Update button press in the grid View control would trigger the Command event - it did not. My markup and code look as follows and the Update event is not firing: This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. The routine loading of the product table now happens only on the first pass through the code behind.
Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.