I am looking to enhance my data grid object by adding a button column. The data table is filled in the aspx.cs file, and we are using the .Net Webform structure. Can anyone provide guidance on how to achieve this? Below is an example of my current grid setup:
<div id="divSGKTecrube" runat="server">
<iskurControls:IskurGridView runat="server"
ID="ctlGridSgkTecrube"
AutoGenerateColumns="False"
EmptyDataText="Tecrübe Bilginiz Bulunmamaktadır."
EnableViewState="true"
CssClass="table table-bordered table-condensed text-small">
<Columns>
<asp:BoundField DataField="ISYERISICILNO" HeaderText="İşyeri Sicil No">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="ISYERIADI" HeaderText="İşyeri Adı">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="MESLEKKODU" HeaderText="Meslek Kodu">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="MESLEK" HeaderText="Meslek">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="SURE" HeaderText="Süre">
<HeaderStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="BASLANGICTARIHI" HeaderText="Baş Tar">
<HeaderStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="BITISTARIHI" HeaderText="Bit Tar">
<HeaderStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:ButtonField Text="Example Button" CommandName="ExampleCommand" />
</Columns>
<PagerStyle CssClass="grid-PagerStyle"></PagerStyle>
<SelectedRowStyle CssClass="grid-SelectedRowStyle"></SelectedRowStyle>
<HeaderStyle CssClass="grid-HeaderStyle"></HeaderStyle>
<EditRowStyle CssClass="grid-EditRowStyle"></EditRowStyle>
<AlternatingRowStyle CssClass="grid-AlternatingRowStyle"></AlternatingRowStyle>
<FooterStyle CssClass="grid-FooterStyle"></FooterStyle>
<RowStyle CssClass="grid-RowStyle"></RowStyle>
<EmptyDataRowStyle CssClass="grid-EmptyRow" />
</iskurControls:IskurGridView>
<div style="text-align: center">
<kaleCustomControls:DataPager ID="DataPager1" runat="server" VisibleIfNoNeed="False" PagerButtons="NextPrevious" />
</div>
</div>