Forms Data Controls :: Create An Expand / Collapse Grid View?
Jun 30, 2010
I am looking for a expand/collapse script for a grid view. But after searching around, seems like all sample code are for datagrid instead of grid view. And because there are differences between properties of gridview and datagrid, I can just implement it. Does anyone has any reference for grid view?
I want to populate the search results in grid. The results should be grouped based on condition. I mean if i am searching for name called Osama laden, all the names containing Osama be grouped(+) and Laden as well. I should get the count side to the (+) button. When i click on + button the results should expand and when i click on(-) the results should collapse.
I'm trying to create a list (customized grid) with data pulled from the database and display it to the user in a format that looks very much like a forum thread and replies or posts.Which each of these "posts" I require to have buttons specific to that particular column to edit, delete etc.
i have a grid view with some coulmns like Name,Phone no etc with Edit,Delete column in grid view. I click a row in grid view to Edit,it goes another page where i can edit all fields .Once i update i redirect the page to gridview. I want the grid view to remain in that particular page say 4 of the grid view
I am trying to use a treeview control in my application. From the begining I had one parentnode and several childnodes for each parentnode. I wanted to be able to close an opened node when I click on a new one and I maneged that with OnTreeNodeExpanded method.
My problem is that I now need to expand my treeview so it will look something like this:
What I want now is:
1. to be able to close an opened parentNode if i click on some other parentNode,
2. if i click on childNode i want to expand it so I can see grandchild,
3. if i click on another childNode for the same parentNode I want that the allready expanded childNode collapses and that the childNode I clicked on to expand.
It happened to add an extra Gridveiw Header in row_databound event , It did worked fine on !Postback but disappered on Page.Postback . Quick google search guided me to move the event to Row_Created event and every thing is okay .
Can any expert post some pointers , differnces between grid row_created vs row_databount with some sample table data created dynamically behaviour of both the events in !Postback and page.Postback .
I am doing a online web application whereby user is able to enter in new template as well as search for template. The Add template is located outside the grid view and if user clicks on the button, it will load the grid view that is populated with data as there is a row of empty fields at the bottom. However when I click on the Add Template button, the grid view does not appear.
This is my business logic that I used it to search for records as well to click on the Add Template button to add in new records: