I have developed a page which contains some controls like textboxes, dropdown,etc. I had created the datatable using the sqldataadapter and that works fine by retriving the table using the select command. I want to place the data in a gridview and it also works. Now I want to populate the gridview columns based on my user input controls like hiding or showing selected columns. I don't have the idea how to do this. please help me and advance thanks for your answer