Retrieve select row.cell from Gridview and display in Textboxhttp://forums.asp.net/t/1194725.aspx/1?Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxTue, 20 Jul 2010 12:31:58 -040011947252061633http://forums.asp.net/p/1194725/2061633.aspx/1?Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRetrieve select row.cell from Gridview and display in Textbox <p>Hi all,</p> <p>&nbsp;Pls help with this issue:<br> <br> I have 2 pages both are using Gridview and implemented in C# asp.net.&nbsp; </p> <p>On page 1, in the Gridview (ie, Edit, Delete enable) &nbsp;when I click Edit so I have a Textbox which allow&nbsp;me to&nbsp;<br> edit the text in the textbox that populated&nbsp;from the database and next to it I have a button when click I need <br> to open a page 2 &nbsp;where user can select&nbsp;a row &nbsp;(ie, page 2 also use Gridview, Select enable and use <br> different datasource&nbsp;), once user select a row&nbsp;I need to get the value&nbsp;row.cells[1] for example and put the value <br> into the textbox in page 1 and page 2 close itself.&nbsp; the purpose of page 2&nbsp;serve as a look up table and for user <br> to select a row, then display that value in the textbox in page1.<br> <br> I can get the value on page 2 when user select a row&nbsp;but I dont know how to implement such when&nbsp;user <br> select a row and get the value on page 2&nbsp;and put the value into the textbox in page 1 and page 2 close itself.<br> </p> <p>&nbsp;any suggestion and guidance is greatly appreciated.<br> thanks in advance.</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;&nbsp;</p> 2007-12-15T13:00:45-05:002062799http://forums.asp.net/p/1194725/2062799.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi:</p> <p>&nbsp; Here's the sample:</p> <p>Page1:</p> <p>&nbsp;&lt;input id=&quot;TextBox1&quot; type=&quot;text&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;input onclick=&quot;window.open('Page2.aspx')&quot; id=&quot;Button3&quot; type=&quot;button&quot; value=&quot;button&quot; /&gt;</p> <p>Page2:</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input onclick=&quot;window.opener.document.getElementById('TextBox1').value='Hello';self.close();&quot; id=&quot;Button1&quot; type=&quot;button&quot; value=&quot;button&quot; /&gt;<br> </p> <p>&nbsp;</p> <p>Regards</p> 2007-12-17T04:46:06-05:002062822http://forums.asp.net/p/1194725/2062822.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Since you are using the SELECT CommandField then you can have something like this</p> <p>Page2.Aspx&nbsp;</p> <p>&nbsp;protected void Button1_Click(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; GrdiView1.Rows.Count; i&#43;&#43;)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (GrdiView1.SelectedIndex == i)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String name =GridView1.Rows[i].Cells[1].Text; //Gets the data value in the grid; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Session[&quot;Value&quot;] = name;<br> &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response.Redirect(&quot;Page1.aspx&quot;);<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; } </p> <p>&nbsp;</p> <p>Page1.aspx</p> <p>&nbsp;&nbsp;&nbsp; protected void Page_Load(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; string RowValue = Session[&quot;Value&quot;].ToString();</p> <p>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; TextBox1.Text = RowValue;<br> &nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; } <br> </p> 2007-12-17T05:00:50-05:002062871http://forums.asp.net/p/1194725/2062871.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>You can create session for seleted value in grid in page2.aspx and get that session value on page1.aspx on click event of page2.aspx button</p> 2007-12-17T05:31:51-05:002064632http://forums.asp.net/p/1194725/2064632.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi Allen,</p> Thank you all very much for your reply<br> The issue that I am facing is that on page 1, I have a Gridview with&nbsp;2 fields from db and Edit enable<br> so when I click Edit on a particular row let say it should shows&nbsp;2 TextBox, 2 buttons ( Lookup1, Lookup 2 ), Update and Cancel &nbsp;button<br> so when I click on the button next to the TextBox 1, for example Lookup 1,<br> <br> <font color="#0000ff" size="2"></font><font color="#0000ff" size="2"> <p>&lt;</font><font color="#800000" size="2">EditItemTemplate</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&nbsp; &lt;</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">TextBox</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;TextBox1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;&lt;/</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">TextBox</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&nbsp; &lt;</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">Button</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;lookup1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Text</font><font color="#0000ff" size="2">=&quot;Lookup&quot;</font><font size="2"> </font><font color="#ff0000" size="2">CssClass</font><font color="#0000ff" size="2">=&quot;editCmdStyle&quot;</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;<br> </font><font color="#0000ff" size="2">&lt;/</font><font color="#800000" size="2">EditItemTemplate</font><font color="#0000ff" size="2">&gt;</p> </font><br> &nbsp;a new page should open, and I suppose to pass along the <br> Id of the TextBox 1 next to the button so that on page 2 when user select a row, I&nbsp;just need to get the value and assign to the Textbox in page 1.&nbsp; <br> I just dont know how to get the TextBox Id to pass along to page 2, I tried the OnRowEditing=&quot;gridview_OnRowEditing&quot; but&nbsp;I got a NullException, I also tried <br> OnRowDataBound=&quot;gridview_RowDataBound&quot; it's also NullException<br> <br> <font color="#008080" size="2"></font><font color="#008080" size="2">TextBox</font><font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">)e.Row.Cells[1].FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">);<br> or <br> <font color="#008080"><font color="#008000" size="2"><font color="#008080">TextBox</font><font color="#000000" size="2">&nbsp;tb </font>= (<font color="#008080" size="2">TextBox</font><font size="2">)</font>GridView1.FindControl(&quot;<font color="#008080">TextBox1</font>&quot;);</font></font></font><font size="2"><font color="#008080"><font color="#008000" size="2"></font></font> <p></font><br> <br> </p> <p>If I create a TextBox that is not in the Gridview that it is OK&nbsp;, the problem is the TextBoxId<br> Is there any way to get the TextBoxId when the Edit button is click so that I can pass along to page2 ?<br> I tried and tried and almost give up so pls pls pls help. </p> <p>Truly appreciated</p> <p>&nbsp;</p> 2007-12-17T22:20:16-05:002064740http://forums.asp.net/p/1194725/2064740.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Try this</p> <p><font size="2"><font color="#0000ff" size="2">protected</font><font size="2"> </font> <font color="#0000ff" size="2">void</font><font size="2"> </font></font>GridView1<font size="2"><font size="2">_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">GridViewRowEventArgs</font><font size="2"> e)</font></font><br> {</p> <p>foreach(GridViewRow row in GridView1.rows)<br> {</p> <p><font color="#008080" size="2">TextBox</font><font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.Cells[1].FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">);</font></p> <p>//OR</p> <p><font color="#008080" size="2">TextBox</font><font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">);</font></p> <p>} <br> </p> <p>&nbsp;</p> 2007-12-17T23:58:08-05:002064842http://forums.asp.net/p/1194725/2064842.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi vinz,</p> <p>Thanks for your replied <br> I tried and it's still null for <br> <br> </p> <font color="#008080" size="2"> <p><font size="2"><font color="#0000ff" size="2">protected</font><font size="2"> </font> <font color="#0000ff" size="2">void</font><font size="2"> </font></font>GridView1<font size="2"><font size="2">_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">GridViewRowEventArgs</font><font size="2"> e)</font></font><br> {</p> <p>foreach(GridViewRow row in GridView1.rows)<br> {</p> <p>TextBox<font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.Cells[1].FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">) ;<br> TextBox<font size="2">&nbsp;tb1 = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">) ;</font></font></p> <p><font color="#008080" size="2">if (</font><font size="2">&nbsp;tb </font><font size="2">= null&nbsp;</font>|| tb1&nbsp;<font size="2">!= null)<br> {<br> &nbsp;&nbsp;&nbsp;&nbsp; Response.write( TextBox<font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.Cells[1].FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">).Text </font>);<br> </font>}<br> } <br> <br> and it's still null<br> </p> </font> 2007-12-18T01:37:31-05:002064889http://forums.asp.net/p/1194725/2064889.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>i think there is something wrong about your IF condition.. try this</p> <p><font size="2"><font color="#0000ff" size="2">protected</font><font size="2"> </font> <font color="#0000ff" size="2">void</font><font size="2"> </font></font>GridView1<font size="2"><font size="2">_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">GridViewRowEventArgs</font><font size="2"> e)</font></font><br> {</p> <p>foreach(GridViewRow row in GridView1.rows)<br> {</p> <p>TextBox<font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) row.Cells[1].FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">) ;<br> <font size="2"></font></font></p> <p><font color="#008080" size="2">if (</font><font size="2">&nbsp;tb.Text != null || tb.Text != &quot;&quot;</font><font size="2">)<br> {<br> &nbsp;&nbsp;&nbsp;&nbsp; Response.write( tb.Text<font size="2"> </font>);<br> </font>}<br> }</p> <p>NOTE: Besure that your textbox1&nbsp; reside in Cells[1] or else you cannot get the value for TextBox1&nbsp;</p> <p>&nbsp;</p> 2007-12-18T02:21:32-05:002065852http://forums.asp.net/p/1194725/2065852.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi Vinz,</p> <p>Thanks for your reply,<br> it's still null. I think because the Textbox in the Edit row is formed only after Edit is click<br> I even tried to get the TextId on OnRowEditing but still TextId is null <br> <br> Any other suggestion is greatly appreciated.<br> Regards</p> 2007-12-18T12:13:30-05:002065925http://forums.asp.net/p/1194725/2065925.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>&nbsp;Why are you looping through gridview's row in rowdatabound event?</p> <p>try this one&nbsp;</p> <p><font size="2"><font color="#0000ff" size="2">protected</font><font size="2"> </font> <font color="#0000ff" size="2">void</font><font size="2"> </font></font>GridView1<font size="2"><font size="2">_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">GridViewRowEventArgs</font><font size="2"> e)</font></font><br> {</p> <p>TextBox<font size="2">&nbsp;tb = (</font><font color="#008080" size="2">TextBox</font><font size="2">) e.row.FindControl(</font><font color="#800000" size="2">&quot;<font color="#008080">TextBox1</font>&quot;</font><font size="2">) ;&nbsp; // debug this code<br> </font></p> <p><font color="#008080" size="2"></font>string val=tb.Text; <br> }</p> <p>&nbsp;</p> 2007-12-18T12:42:28-05:002066036http://forums.asp.net/p/1194725/2066036.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi Vinz,</p> <p>Thanks<br> <br> I got this error when trying that<br> <br> so in my Gridview <br> <br> <font color="#ff0000" size="2">OnDataBound</font><font color="#0000ff" size="2">=&quot;gridview_RowDataBound&quot;<br> </font></p> <p><font color="#0000ff" size="2">Code behind:</p> </font> <p><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp; protected void gridview_RowDataBound(object sender, GridViewRowEventArgs e)<br> &nbsp;&nbsp;&nbsp; {</font></p> <font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; 4; i&#43;&#43;)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //TextBox txtName = GridView1.Rows[i].FindControl(&quot;TextBox3&quot;) as TextBox;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextBox txtName = (TextBox)e.Row.FindControl(&quot;TextBox3&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (txtName != null)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;NOT NULL&quot; &#43; txtName.Text);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }else<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;all NULL &lt;br /&gt;&quot; );<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp; }</font><font color="#0000ff" size="2"> <p>loop thru 4 for testing since I know that are only 3 rows</font><br> <br> Error&nbsp;3&nbsp;C:\Inetpub\wwwroot\WinPorte\ICDM03-10.aspx&nbsp;No overload for 'gridview_RowDataBound' matches delegate 'System.EventHandler'&nbsp;35&nbsp;</p> it is complaining that <font color="#008080">GridViewRowEventArgs in the function parameter</font><font color="#0000ff" size="2"></font><font color="#0000ff" size="2">protected</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> gridview_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">GridViewRowEventArgs</font><font size="2"> e)<br> <br> if I change to <br> <br> <font color="#0000ff" size="2"></font></font><font size="2"><font color="#0000ff" size="2"> <p>protected</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> gridview_RowDataBound(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">EventArgs</font><font size="2"> e)</p> </font> <p></font><br> then it is not complaining </p> <p>any suggestion is greatly appreciated</p> 2007-12-18T13:34:11-05:002067125http://forums.asp.net/p/1194725/2067125.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Try to put your code in PreRender event&nbsp;</p> <p>&nbsp;&nbsp;&nbsp; protected void gridview_PreRender(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp; //codes here<br> &nbsp;&nbsp;&nbsp; } <br> </p> 2007-12-19T00:13:32-05:002067549http://forums.asp.net/p/1194725/2067549.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi brigideW,</p> <p>I noticed some mistakes</p> <p>1st mistake is <strike><font color="#ff0000" size="2">OnDataBound</font></strike><font color="#0000ff" size="2"><strike>=&quot;gridview_RowDataBound&quot;</strike> </font><font color="#ff0000" size="2">On<u><b><i>Row</i></b></u>DataBound</font><font color="#0000ff" size="2">=&quot;gridview_RowDataBound&quot;</font> </p> <p><font color="#0000ff" size="2">Code behind:</font></p> <p><font color="#0000ff" size="2">2ndMistake:Dont loop through RowDataBound. it already checks each row</font></p> <p><font color="#0000ff" size="2">3rd: mistake:&nbsp; you didnt specify rowtype<br> </font></p> <p><font color="#0000ff" size="2">&nbsp;&nbsp; protected void gridview_RowDataBound(object sender, GridViewRowEventArgs e)<br> &nbsp;&nbsp;&nbsp; {</font></p> <p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (e.Row.RowType == DataControlRowType.DataRow)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;</p> <p><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextBox txtName = (TextBox)e.Row.FindControl(&quot;TextBox3&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (txtName != null)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;NOT NULL&quot; &#43; txtName.Text);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></p> <p><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;all NULL &lt;br /&gt;&quot; );</font></p> <p><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp; }<br> }</font></p> <p>&nbsp;Check now</p> <p>Regards,</p> <p>naveen&nbsp;</p> 2007-12-19T05:35:09-05:002071728http://forums.asp.net/p/1194725/2071728.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Hi naveen,</p> <p>Thanks for your reply.<br> Yes, let me try.</p> <p>Happy Holidays</p> 2007-12-21T02:06:30-05:002861898http://forums.asp.net/p/1194725/2861898.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>&nbsp;i need source code for this ya<br> </p> 2009-01-12T10:48:33-05:002926580http://forums.asp.net/p/1194725/2926580.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>&nbsp;Hi can anyone tell me how can i get the row no of the gridview when user clicks on the grid view or enters any data in the gird view template field when then item template is having a textbox in it.</p> 2009-02-09T07:18:09-05:003982089http://forums.asp.net/p/1194725/3982089.aspx/1?Re+Retrieve+select+row+cell+from+Gridview+and+display+in+TextboxRe: Retrieve select row.cell from Gridview and display in Textbox <p>Thanks!&nbsp; This helped me in resolving an issue in a scenario&nbsp;</p> 2010-07-20T12:31:58-04:00