Free 100 free sex chat site without registration - Onrowupdating not fired

You can hide a Command Field or Button Field based on the position (index) in the Grid View.If I want to access the method in which we define update query, how can I access that method on aspx page & update the data in a grid view without direct use of an query on aspx page under sql data source?

onrowupdating not fired-16

I think if we do the same thing on page load event it work because value is set when row updating event is fired. This means that all of the data that the user provided for the row that they are updating is loaded into the ASP.

When this event fired it saves the values at their view state & this view state is sent to the client. NET controls used to access the data in your C#/VB. If you do a Data Bind in the Page Load event then all of this data is lost!

Among the fields of this object, you can find data relating to the cell whose hover state has been changed.

For example, to identify whether a cell has been hovered over or hovered out, check the value of the event Type field.

But if you need to get data from the user for updating purposes then, no, you should do it in the Page Pre Render event instead.

-Frinny @Frinavale The event is fired between load view state & save view state when the event is fired it set the values in textbox or whatever server control we used. Then there is no matter of data loss if you load the page again but I have to bind data in a grid view through view state on page load no chance of data loss. NET Page Life Cycle for a more detailed explination. Data Bind in the Page Load event (without checking if it's postback) then you will not be able to retrieve user input in the Grid View. -Frinny The View State is stored some time in between the Page Pre Render event and the Save State Complete event (heading towards the Render stage).

You could cache the object that you are going to use as a data source too.

This way you don't have to repopulate the data source every page postback.

Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms. The idea is to only allow a command to be performed on specific people. I'd prefer a declarative solution to a procedural one. For me converting the commandfield to a templatefield control is not an option, as the commandfield comes with built-in functionality that I would otherwise have to create myself, for example the fact that it changes to "Update Cancel" when Edit is clicked, and that when Edit is clicked, all the cells in the row which are labels become textboxes, etc.

Tags: , ,