﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - To know if the childtable has some data.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/To-know-if-the-childtable-has-some-data/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>To know if the childtable has some data.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/To-know-if-the-childtable-has-some-data/</link><pubDate>Tue, 15 Jan 2013 01:35:20 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes it is possible. Perhaps you could use GetChildRows() method to know whether the row have a child table or not.&lt;br&gt;&lt;/br&gt;Here’s the snippet example code how to use GetChildRows() method:&lt;/p&gt;&lt;pre&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
    function expandChildRow() {
        var grid = ISGetObject("WebGrid1");
        var selObj = grid.GetSelectedObject();
            
        if (selObj == null) {
            alert("Please select a row");
            return;
        }
        else {
            var row = selObj.GetRowObject();
            if (!row.ChildExpanded) {
                    //Expand the child row                   
                    row.ExpandChildRow(true);
                    //Get child rows
                    var childRows = row.GetChildRows();
                        
                    //If the row have child rows
                    if (childRows)
                        alert("This row have child rows!");
                    //If the row doesn't have child rows
                    else
                        alert("This row doesn't have any child rows!");
            }
            else
                alert("Row already expanded!");
        }
    }
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;Hans.&lt;/p&gt;</description></item><item><title>To know if the childtable has some data.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/To-know-if-the-childtable-has-some-data/</link><pubDate>Fri, 11 Jan 2013 04:58:54 GMT</pubDate><dc:creator>fernando.pablo@kcc.com</dc:creator><description>&lt;p&gt;I need to know if the chiltable into webgrid has some data, In this possible to know that with visual studio code?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>