0

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

2
Contributors
2
Replies
13
Views
4 Years
Discussion Span
Last Post by misd_bunder
0

Hey! I found out the solution. I had turned the visibility like this

GridView1.Columns[1].Visible = true;

It works!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.