Tag - GridView

Two Databound fields in Gridview column ASP.NET

Boundfields are great in the Gridview, but they do have their limitations.One is that it only has room for one bound field. So, what do you do when you want two or data fields.For example, First and Last names returned to the same column.Turn the BoundField into a TemplateField, with a label in it: <asp:templatefield> ...

Confirmation message upon deleting an item from GridView control in ASP.NET

Lots of users click the delete button within the GridView with no attention then the result is that the item will be deleted from the GridView, so we can add confirmation message to appear to tell the user "Are you sure you want to delete this item?". First of all we have to attach the javascript code...