title: How to get current selected data in datalist from gridview inside it?
body: <p>i have a datalist and inside it there is many rows and in one of these rows i have a gridview,. i can say that it's like  the following <BR/></p>
  
  <pre><code>&lt;DataList&gt;
    &lt;tr&gt;
        &lt;td&gt; [textbox1 control]  &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; [textbox2 control]  &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; 
         &lt;gridview/&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/DataList&gt;
  </code></pre>
  
  <p>my problem is when i'm in gridview RowCommand handler i want to get the data that exist in [textbox1 control] and [textbox1 control] </p>
  
  <p>i do the following </p>
  
  <pre><code>DataListItem dataListItem = (DataListItem)((GridView)sender).Parent.Parent.Parent.Parent;
  string txt = ((TextBox)dataListItem.FindControl([textbox1 control])).Text.Trim();
  </code></pre>
  
  <p>but is this the only way to  ?</p>