Hi All,
I am using Radgrid into NestedViewTemplate(Hierarchy Grid). i want to add datasourceid in code behind. i have write code in parent grid itemDataBound like this
If TypeOf e.Item Is GridNestedViewItem Then
Dim nesItem As GridNestedViewItem = DirectCast(e.Item, GridNestedViewItem)
Dim rgQuesSection As RadGrid = DirectCast(nesItem.FindControl("rgQuesSection"), RadGrid)
Dim rgQuesPanel As RadGrid = DirectCast(nesItem.FindControl("rgQuesPanel"), RadGrid)
Dim nestedView As GridNestedViewSettings
nestedView.DataSource = "sdsQuesSection"
nesItem.Controls.Add(nestedView )
End If
But GridNestedViewSettings come like nothing. Please let me know how to solve.
Thanks in Advance,
Dhamu.
I am using Radgrid into NestedViewTemplate(Hierarchy Grid). i want to add datasourceid in code behind. i have write code in parent grid itemDataBound like this
If TypeOf e.Item Is GridNestedViewItem Then
Dim nesItem As GridNestedViewItem = DirectCast(e.Item, GridNestedViewItem)
Dim rgQuesSection As RadGrid = DirectCast(nesItem.FindControl("rgQuesSection"), RadGrid)
Dim rgQuesPanel As RadGrid = DirectCast(nesItem.FindControl("rgQuesPanel"), RadGrid)
Dim nestedView As GridNestedViewSettings
nestedView.DataSource = "sdsQuesSection"
nesItem.Controls.Add(nestedView )
End If
But GridNestedViewSettings come like nothing. Please let me know how to solve.
Thanks in Advance,
Dhamu.