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
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.
Dear Prabha!
How to get value of item template of WHDG Child Column when i submit form. I've two event RowIslandsPopulating to populating child data and RowIslandDataBound to get value data after change but when I submit form I have no value of data. I debug see detail event RowIslandsPopulating exec when I submit form and populate data and refresh child grid. Can you show me to solution
Hi Prabha,
When i tried the code am getting the exception :"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index".When i checked the IsrowIslands property it is showing as true.Even i tried with index value from 0 to 2.Please respond to this asap.
Hsakarp.