i have a gridview with more than ten columns. I just have to display only a few selected columns for the user as soon as he opens the website. Once a button is clicked, all those ten columns should be displayed in either grid veiw or in the form of a tree. can you pls help me out on this?
buttons on gridview
Collapse
X
-
You can use a TemplateField column to display a column with a button in it.
Or you could use a CommandField to generate a column with Select or Edit or Delete button/link in it.
-FrinnyComment
-
Yes, this solution requires JavaScript.
When clicking the row, you would use JavaScript to open another window and pass it the information necessary to display the data in the other screen. You could pass this information via the JavaScript, or you could have the window display another page in your application and pass the ID of the information to display via the QueryString/URL...or you could use cookies ....
Look into the JavaScript window opener property.
There are too many possible ways to display the data, so try something that makes sense to you.
-FrinnyComment
Comment