title: Master-Detail Gridview Devexpress
body: <p>I have a Master Grid and Detail Grid, Detail Grid allows me to UPDATE and DELETE but it is not refreshing. If I Update twice or Delete twice it is deleting or else when I expand the Master Grid the Updated data are shown in the Detail Grid. I am using CallBackPanel here. How can I refresh the Detail Grid?</p>
  
  <pre><code>&lt;dx:ASPxCallbackPanel runat="server" ID="CallbackPanel"
   ClientInstanceName="CallbackPanel" OnCallback="CallbackPanel_Callback"&gt;
  
      &lt;PanelCollection&gt;
  
          &lt;dx:PanelContent ID="PanelContent3" runat="server"&gt;
  
              &lt;dx:ASPxGridView ID="grdMasterBuilding"
                  ClientInstanceName="grdMasterBuilding" 
                  runat="server" KeyFieldName="BuildingId" AutoGenerateColumns="False"&gt;
  
                  &lt;Columns&gt;
                      &lt;dx:GridViewDataTextColumn 
                          FieldName="Name" Caption="Building Name"/&gt;
  
                      &lt;dx:GridViewDataTextColumn                             
                          FieldName="Description" Caption="Building Description"&gt;
                  &lt;/Columns&gt;
  
                  &lt;Templates&gt;
                      &lt;DetailRow&gt;
  
                          &lt;dx:ASPxGridView ID="grdDetailBuilding" 
                              ClientInstanceName="grdDetailBuilding" runat="server" 
                              KeyFieldName="FloorId" AutoGenerateColumns="False"
  
                              &lt;Columns&gt;
                                  &lt;dx:GridViewDataTextColumn   
                                      FieldName="FloorCode" Caption="Floor Code"&gt;
                                  &lt;dx:GridViewDataTextColumn&gt; 
  
                                  &lt;dx:GridViewDataTextColumn 
                                      FieldName="FloorLength" Caption="Floor Width" /&gt;
                                  &lt;/dx:GridViewDataTextColumn&gt;
  
                                  &lt;dx:GridViewDataTextColumn 
                                      FieldName="FloorHeight" Caption="Floor" /&gt;
                                  &lt;/dx:GridViewDataTextColumn&gt;
  
                                  &lt;dx:GridViewDataComboBoxColumn
                                      FieldName="FloorType" Caption="Floor Type" /&gt;
                                  &lt;/dx:GridViewDataComboBoxColumn&gt;
  
                                  &lt;dx:GridViewDataComboBoxColumn
                                      FieldName="DeliveryOption" VisibleIndex="9" 
                                      Caption="Delivery Option" /&gt;
                                  &lt;/dx:GridViewDataComboBoxColumn&gt;
  
                                  &lt;dx:GridViewDataTextColumn
                                      FieldName="NumbersOfUnits" Caption="No Of Units"
                                  &lt;/dx:GridViewDataTextColumn&gt;
  
                                  &lt;dx:GridViewDataTextColumn
                                      FieldName="SquareFeet" Caption="Square Feet" 
                                  &lt;/dx:GridViewDataTextColumn&gt;        
                              &lt;/Columns&gt; 
  
                          &lt;/dx:ASPxGridView&gt;
  
                      &lt;/DetailRow&gt;
                  &lt;/Templates&gt;
  
                  &lt;SettingsDetail ShowDetailRow="true" /&gt;
  
              &lt;/dx:ASPxGridView&gt;
          &lt;/dx:PanelContent&gt;
      &lt;/PanelCollection&gt;
  </code></pre>
  
  <p></p>