Rowupdating in gridview not working


21-Oct-2014 21:12

In my case this was happening because I was binding to a List of custom objects.

Note A common mistake that a lot of people do is that they perform a databind each and every-time the Page_Load method is called.

These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.In the Page_Load event, you simply load your data from the database and bind it with the Grid View control as shown below: For brevity I am not storing connection string in the web.config and also not using any Data Access Component.Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

Now I will show you the C# code behind file of the above ASP.



Staging ( Suatu animasi juga meliputi lingkungan yang mendukung ) 11.… continue reading »


Read more

I'd like to use this as a basis, and I'm hoping you can help me with a simple tweak. I have been directed to read the relevant specs here: and the validity criteria are here: Thank you for the Python port ! … continue reading »


Read more

Communicating Alpha Male qualities online is level one.… continue reading »


Read more

If a country is not listed, it is because Alexa does not have enough data for this site to rank/measure the site's popularity among that country's online population. The metrics are updated daily based on the trailing 3 months.… continue reading »


Read more

Women are much more likely than men to have experienced uncomfortable contact via online dating sites or apps: some 42% of female online daters have experienced this type of contact at one point or another, compared with 17% of men.… continue reading »


Read more

Tele Chat is 100% free with no gimmicks, hassles, hidden charges, or games involved! Long distance charges may apply if you don't have free long distance on your home, cellular phone, or VOIP (voice over IP) internet connection.… continue reading »


Read more

Aileleri evden gittikten sonra ensest ilişki yaşamak için anlaşan abla ve kardeş daha sonra ablanın giydiği seksi iç çamaşırlar ile kardeşinin yanına gelerek onu tahrik etmesi ile ateşi yakıyor ve oğlana güzel kurlar ...… continue reading »


Read more

Take time to get to know them and listen to your intuition.… continue reading »


Read more