This is a migrated thread and some comments may be shown as answers.

[Solved] Find Nested Radgrid from button click

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 23 Apr 2013, 05:54 PM
I want to refresh or rebind a nested radgrid from a radbutton located outside of the grid. How do I get to the nested radgrid from here?

    Private Sub rbtnSave_Click(sender As Object, e As System.EventArgs) Handles rbtnSave.Click
        Try
            If SaveBuilding() Then
                'Dim GrantProjectID As Integer = Convert.ToInt32(Session(Const_Session.SELECTED_GRANT_PROJECT_ID).ToString)
                'grvGroupBuildings.DataSource = GetGroupAgenciesDataSource(GrantProjectID)
                'grvGroupBuildings.DataBind()
                ShowMessage("Update saved!")
            End If
        Catch ex As Exception
            ShowError(ex.Message)
        End Try
    End Sub

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Apr 2013, 04:11 AM
Hi,

Try the following code.
VB:
Protected Sub Button4_Click(sender As Object, e As EventArgs)
    For Each item As GridNestedViewItem In RadGrid2.MasterTableView.GetItems(GridItemType.NestedView)
        Dim grid As RadGrid = DirectCast(item.FindControl("RadGrid5"), RadGrid)
    Next
End Sub

Thanks,
Shinu
Tags
Grid
Asked by
Don
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or