Free sex chat only message - Rowupdating in grid

by  |  23-Apr-2019 07:56

In this article, I am going to take a simple database table that has following fields: Auto ID - Int, Auto Increment, Primary Key Page Name - Varchar(50) Page Description - Varchar(500) Active - Bit(1) In this article, I am not going to explain the workings of Sql objects but focusing on the events and methods of the Grid View that will help us in updating and deleting the records.Now let’s start with putting the Grid View on page. Data Key Names="Auto ID" Auto Generate Edit Button="True" On Row Editing="Edit Record" On Row Canceling Edit="Cancel Record" On Row Updating="Update Record" Cell Padding="4" Header Style-Horizontal Align="left" On Row Deleting="Delete Record" Row Style-Vertical Align="Top" Fore Color="#333333" Grid Lines="None" In the above code, I have kept Auto Generate Columns as false so that Grid View will not render all the fields of the data source automatically.

rowupdating in grid-65rowupdating in grid-25rowupdating in grid-22

This control may be located at the top of the page and have its property value is remembered across postbacks.

Consequently, if a user deletes a record the "Record deleted" message is displayed.

I will be using Sql objects directly into methods to keep the example simple and straight forward.

In practical scenario you should use your existing architecture to populate and update the data.

It's a reaction on the "invalid" status in the server-side response.

Community Discussion