Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
475
How to get the value from the WHDG Child Column
posted

Hi,

How can i get the value of particular column in the particular row.In normal ASp gridview we can get the value by GridView.Rows(0).Cells(1).Value.ToString().Suppose i want to get the value of secondcolumn in firstrow of the child.IS dat using rowislands can we get that.?Please help me with this issue.

 

Regards,

Hsakarp

Parents
  • 7499
    Verified Answer
    posted

    Hello Hsakarp,

    You can get the text from the WHDG Child Column using the following code.

    protected void WebHierarchicalDataGrid1_RowIslandDataBound(object sender, RowIslandEventArgs e) { ContainerGrid childGrid = this.WebHierarchicalDataGrid1.GridView.Rows[0].RowIslands[0];

    string str= childGrid.Rows[0].Items[1].Text;

    }

    Please let me know if you have any further questions regarding this matter.

Reply Children