Most of the time we need to delete duplicate entries from GridView, in this case we can delete it manually also or using onRowcreate also we can remove that .

Example
suppose Mr.Xyz has has more than 2 Account in Blogspot.com site and we want to show
in GridView Person and RelatedBlogs like this [...]

In GridView using “OnRowCreated” function we can add onClick function.

here is the sample code

html code

<asp:TemplateField HeaderText=”Header 3″>
<ItemTemplate>
<asp:Label ID=”Label1″ runat=”server” Text=”Click Me”></asp:Label>
[...]

In GridView when delete / Update any record , that time we have to show confirm from
Customer end is the changes are made or not ,
so at this situation we can show one Confirmation Message (Alert).
like “You want to Delete this Record” Yes/ No.

Use Below Code,

<asp:TemplateField>
[...]

hi

some time we want to design a Grid-view with are requirement and all , just like format row ,
format text (bold, italic, font color will be red, background will be Red ) like that
we can design such thing while Creating Each Row for that we have to add [...]