Rowupdating get datakey

It displays 2 columns Contact Name and City of which city is editable via ASP. The identifier column Customer Id is bind to the Data Key Names property.

Here Mudassar Ahmed Khan has explained how to Export a Grid View with Images or Pictures to Word Excel or PDF Formats in ASP. In this article the Grid View is displaying images stored on disk and th Hi, This is Mudassar Khan. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.

rowupdating get datakey-14rowupdating get datakey-79

The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.

Assumptions- We are using SQL Server Express editions as Database.

Table Name- Employees Fields- Emp Id, Emp Name, Designation Take Grid View control on page and set the ID property to dg Employees.

By default all the boundfields will be trasferred as Textboxes in Edit Mode.

To avoid this we need to keep the property Read Only as false, Then in the edit mode nothing will happenes. The reason I use Template Field instead of Bound Field is that, it is very easy to grab those controls in the codebehind if we user labels or textboxes.

Net is useful for displaying large data in a tabular format.

You must have an account to comment. Please register or login here!