My GridView contains 20 columns which are added programmatically (DataTable, DataColumn, DataRow and DataSet). Now I need to insert a checkbox column as the last column (21st column). How should I add it?
I tried adding with the usual Template Field (from design tab) in .aspx file but that adds a checkbox as the first column and not as the last one.
If you are binding your
GridViewusing aDataTable, do this before you set theGridViewDataSource.On an unrelated side note, please note that your
asp:GridViewis in fact AutoGenerated.