@clarifier Well, it's calling the code behind method every time. However you should pay attention to the implementation of the method. In my approach, you can leave the commandfield as is, then you can hide it as needed via code behind.If it is expensive, this could easily sum up to a large cost. In this example, I am hiding it if the field "Scenario" of the grid shows the text "Actual" for the relevant row of the Row Data Bound event.This post takes the same scenario and implementing the same concept using XML HTTP AJAX implementation. 1 : 0; var is_ie5 = (Version.index Of("MSIE 5.5") ! 1 : 0; var xml Http; /* This function requests the HTTPRequest, will be used to render the Dynamic content html markup * and it will call Handle Response to handle the response */ function Get Child Grid(Id) /* This function is used to handler the http response */ function Handle Response(Id) /* function to create Ajax object */ function create Ajax Object() /* Get the XML Http Object */ function Get Xml Http Object(handler) function xml Http_Get(xmlhttp, url) download the working example of the source code in C# here and in VB here [Update ] The above implementation shows, when clicking the expand icon in the row - it calls the server to get the Grid View script and show in the page.The use case of the implementation follows: To know how XML HTTP AJAX works and how to implement the same in ASP. So to test the code, please make sure you have Northwind database and update the server in connection string on web.config. Once the Grid View shown, it never call again till the page refresh happening and it will just hide and show the Grid View. NET with AJAX, JQuery implementation - Part 1 Hierarchical Grid View in ASP.You can then use the code below to retrieve the ID value: are a great way to use primary keys without having to display them to the user.If you have more than one primary key, you can separate the values with a comma.
Save all or press "Ctrl S" and hit "F5" to run the page, the page will look as in the following image: Click on "Edit the Grid View", it will display Textboxes in each cell as in the following image: Edit the value(s) here and click on the Update link, it will update all the data or to remove it click on the "Delete" link above the image shown.
This post concentrates on how to show Grid View on Hierarchical style with AJAX implementation.
I have already blogged one post related to the same concept without AJAX implementation.
In database tables, we have some specific codes which have specific meaning.
Programmers are aware of the significance of these codes but end users won’t understand what a particular code means.