Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Note : the fields are auto generated from database...
XML
<asp:GridView ID="GridView1" runat="server" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"
                            OnRowEditing="GridView_RowEditing"
                            OnRowDeleting="GridView_RowDeleting" EnableTheming="True" Visible="False">
                        </asp:GridView>
Posted

1 solution

C#
Follow these few steps below


* Switch to Design View in Visual Studio Designer
* Then Click on the GridView
* Click on the Smar-Tag of the Grid located at the Upper-Right corner
* Then Click Edit Columns, then a pop up window will appear
* Locate to the Selected Fields List (you can find there the list of columns in your Grid)
* Then You can now Select the Columns that you want to move by clicking on the Up and Down Arrows located right beside the List
* Then you are done
 
Share this answer
 
Comments
SViki 21-Mar-14 6:18am    
Watch the above coding.. it shows aspx page coding for grid.. I had make it with autogeneratecolumns="true" which means the columns are generated from database...
SViki 21-Mar-14 6:20am    
Design page you will not found anythings as you said if I made as autogenratecolumns="true"...
I need coding in .aspx.cs file...

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