# 5 lines of filling a textbox itemtemplate in gridview

**URL:** <https://forum.kirupa.com/t/5-lines-of-filling-a-textbox-itemtemplate-in-gridview/302293>\
**Category:** programming\
**Created:** [December 25, 2009, 6:07pm UTC](https://forum.kirupa.com/t/5-lines-of-filling-a-textbox-itemtemplate-in-gridview/302293 "2009-12-25T18:07:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corpes](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@Corpes](https://forum.kirupa.com/u/Corpes)\
**Post date:** [December 25, 2009, 6:07pm UTC](https://forum.kirupa.com/t/5-lines-of-filling-a-textbox-itemtemplate-in-gridview/302293/1 "2009-12-25T18:07:29Z")

</div>

I want to insert a dynamic string to a textbox that placed in a gridview as itemtemplate.  
On the code in which im adding information to the gridview,  
i want to create a line that’ll insert to the textbox a dinamic information,  
but even “9” doent work.  
see it:

```php

.
.
.
DataRow dataRow = Faults.NewRow();
dataRow["Address"] = customerDT.Rows[0]["Address"];
dataRow["Phone"] = customerDT.Rows[0]["Phone"];
TextBox dateStringBox=(TextBox)dataRow.FindControl("date");
dateStringBox.Text="9";<---------------------Here is the problam!!!
.
.
.

```
