<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Presentation Controls</title><link>http://forums.asp.net/24.aspx</link><description>ASP.NET data-bound controls such as the DataGrid, DataList, GridView, FormView, DetailsView, and Repeater Controls.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=23&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Master - Detail DataGrid</title><link>http://forums.asp.net/thread/1626524.aspx</link><pubDate>Mon, 19 Mar 2007 13:30:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1626524</guid><dc:creator>Liming</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1626524.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1626524</wfw:commentRss><description>&lt;p&gt;Is this what you are looking for? (take a look at the second screenshot on the page in regards to "milestone")&lt;/p&gt;
&lt;p&gt;&lt;a href="http://limingxu.com/blogs/xu_web_chronicle/archive/2007/03/16/645.aspx"&gt;http://limingxu.com/blogs/xu_web_chronicle/archive/2007/03/16/645.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If it is, then the way we did is a hack and we didnt' use server sided solution, instead we used javascript. &lt;br /&gt;&lt;br /&gt;Basically, we render the "detail" view with style="display:none" inside a div&amp;nbsp;in&amp;nbsp;each row as it renders the grid. When you click on the expand/collpase, we use javascript to &lt;br /&gt;&lt;br /&gt;1. Get the "detail hidden div" from each row. &lt;br /&gt;2. Clone it&lt;br /&gt;3. Dynamically create a row using javascript directly after the current row&lt;br /&gt;4. Insert the detail hidden div inside of the newly created row&lt;br /&gt;&lt;br /&gt;The detail of it is a bit more complicated. &lt;br /&gt;&lt;br /&gt;I know it's not much of help without some code, but hopes that gives you some reference as how it can be done. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Master - Detail DataGrid</title><link>http://forums.asp.net/thread/1626489.aspx</link><pubDate>Mon, 19 Mar 2007 13:05:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1626489</guid><dc:creator>mojoflyballs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1626489.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1626489</wfw:commentRss><description>Follow up on this question.&lt;br /&gt;&lt;br /&gt;This is my idea.&lt;br /&gt;&lt;br /&gt;When I click on datagrid1, I want that the said row be highlighted. Accesing the data is no problem&amp;nbsp; The problem is where will I map the clicked / highlighted event so that each time a change in the highlighted row is detected, the detail datagrid would retrieve based on the master key on the master datagrid.&lt;br /&gt;&lt;br /&gt;Thanks for all possible inputs.</description></item><item><title>Master - Detail DataGrid</title><link>http://forums.asp.net/thread/1623340.aspx</link><pubDate>Fri, 16 Mar 2007 09:20:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1623340</guid><dc:creator>mojoflyballs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1623340.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1623340</wfw:commentRss><description>&lt;p&gt;Hi there everyone.&amp;nbsp; I am using VS 2003 on Framework 1.1. ASP.NET and VB.NET&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Anyway, I would like to get some ideas from you on how I am going to implement this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to design a master-detail datagrid.&amp;nbsp; I know how to populate the datagrid already with data from a database table (either by dataset or datareader).&amp;nbsp; What i want to do next is on the master datagrid, when the I click on the row, its details would be displayed on a datagrid detail.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to know what event should I be coding to in the master datagrid to be able to select the row clicked and highlight it as well and then retrieve the data from that row so as to display it in the datagrid detail.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Summing up:&lt;/p&gt;&lt;p&gt;MasterDataGrid - row should be highlighted where user clicks, an event is fired up to display the data.&amp;nbsp; I wish to know which event i would put my code so as to get the details of the highlighted row and get the data there (let us say, the primary key of the data).&amp;nbsp; Retrieving the detail should be no problem once I am able to get the primary key of the master datagrid.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks everyone.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>