Click here to Skip to main content
15,902,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have below code for the grid view. i want to modify / delete status field in the grid view. i have enabled AutoGenerateDeleteButton="True" AutoGenerateEditButton="True">. Please let me know what code is required in cs file

What I have tried:

below is the grid view coede

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="serial_no" DataSourceID="SqlDataSource1" AllowPaging="True"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True">
<columns>
<asp:BoundField DataField="serial_no" HeaderText="serial_no"
InsertVisible="False" ReadOnly="True" SortExpression="serial_no" />
<asp:BoundField DataField="internal_receiving" HeaderText="internal_receiving"
SortExpression="internal_receiving" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="department" HeaderText="department"
SortExpression="department" />
<asp:BoundField DataField="department_type" HeaderText="department_type"
SortExpression="department_type" />
<asp:BoundField DataField="organization" HeaderText="organization"
SortExpression="organization" />
<asp:BoundField DataField="organization_type" HeaderText="organization_type"
SortExpression="organization_type" />
<asp:BoundField DataField="file_no" HeaderText="file_no"
SortExpression="file_no" />
<asp:BoundField DataField="subject" HeaderText="subject"
SortExpression="subject" />
<asp:BoundField DataField="file_name" HeaderText="file_name"
SortExpression="file_name" />
<asp:BoundField DataField="status" HeaderText="status"
SortExpression="status" />
Posted
Updated 29-Jan-17 17:36pm

1 solution

You can refer to this article, Gridview Edit Delete and Update in ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900