or
objGridView.ClientSettings.Scrolling.FrozenColumnsCount = 1; objGridView.ClientSettings.Scrolling.AllowScroll = true; objGridView.ClientSettings.Scrolling.UseStaticHeaders = true; objGridView.ClientSettings.Scrolling.SaveScrollPosition = true; Panel objPanel = ((Panel)this.Parent.FindControl("MasterPlaceHolder").FindControl("ucModel1").FindControl("pnlModel")); objPanel.Controls.Clear(); objPanel.Controls.Add(objGridView); 
if (newgene == "0") { MainPlaceHolder.Controls.Add(holder); } else { MainPlaceHolder.Controls.Add(new LiteralControl("<br>")); }
I have one problem will explain it
I have two rad grid
The first grid hierarchy contain classes and class_id is primary key ,when expand one class will show all the student in this class
The second gride has students the primary key student_id
I want drag and drop student from second grid to students in one class in first grid
Note: the students in first grid expanded from classes
also I want when I dragdrop the student I want to get in which class_id
The code below to retrieve student_id from second radgrid
Protected Sub RadGrid_Students_RowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgs) Handles RadGrid_Students.RowDrop If e.DraggedItems.Count > 0 Then Dim a As String = e.DraggedItems(0).GetDataKeyValue("Client_id") End If End Sub
How retrieve in which class_id from destination radgrid