title: AspxGridView with a modal window,
body: <p>I have a AspxGridView and when i double click to a row, it shows a modal window. What i want to do is, send one columns' value to a AspxLabel which is at ModalWindow. But i couldn't manage to do it, in gridview i use ClientSideEvents RowDblClick to get row value. Here is the code:</p>
  
  <p>GridView:</p>
  
  <pre><code>&lt;dxwgv:ASPxGridView ID="gw_Parameters" runat="server" 
  
          CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
  
          AutoGenerateColumns="False" ClientInstanceName="grid" 
  
          OnCustomDataCallback="gw_Parameters_CustomDataCallback"&gt;
  
          &lt;ClientSideEvents RowDblClick="function(s, e) {
  
      grid.GetValuesOnCustomCallback(e.visibleIndex, ShowModalWindow())
  
  }" /&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>function ShowModalWindow(val)
  
      {
  
          pcc_Question.Show();
  
          lblCQuestionText.SetText(val);
  
      }
  </code></pre>
  
  <p>And c#:</p>
  
  <pre><code>protected void gw_Parameters_CustomDataCallback(object sender, ASPxGridViewCustomDataCallbackEventArgs e)
  
          {
  
              int visibleIndex = Convert.ToInt32(e.Parameters);
  
              string fieldName = string.Empty;
  
  
  
              if (gw_Parameters.VisibleColumns[0] is GridViewCommandColumn)
  
                  fieldName = ((GridViewDataColumn)gw_Parameters.VisibleColumns[3]).FieldName;
  
              else
  
                  fieldName = ((GridViewDataColumn)gw_Parameters.VisibleColumns[2]).FieldName;
  
  
  
              e.Result = gw_Parameters.GetRowValues(visibleIndex, fieldName);
  
  
  
          }
  </code></pre>
  
  <p>Thanks for the help,</p>
  
  <p>Mehmet Şerif Tozlu</p>