Without seeing your code (Pls don't email your code), you have at least 
two options:

    1. Write code in the Page_PreRender event for the page
   
    2. Write code in the ItemDataBound Event for the datagrid

   In either one, you may have to use the "FindControl()" method
   to locate your control.

   In the page_preRender event
   dim txtBox as TextBox
   txtBox = FindControl("yourTextBoxControl")
   txtBox.Text = ""


   In the OnItemDataBound event
   
Sub myDataGrid_ItemDataBound(Sender As Object, e As DataGridItemEventArgs)
  dim txtBox as TextBox   
  txtBox = e.Item.FindControl("yourTextBoxControl")
  txtBox.text = ""
End Sub
     
Don't forget to wire-up the event handler to the datagrid:
<asp:DataGrid id=myDataGrid OnItemDataBound="myDataGrid_ItemDataBound" 
runat="server">

Dallas Martin








Quoting DurgaNageswaraRao Boddanapalli <[EMAIL PROTECTED]>:

> Dear All,
> 
> I have a problem which needs to be solved.  I am using
> Datagrid in VB.Net.  I have added a template column to
> the textbox control for entering data.  After saving
> the data entered, I am not able to clear the display
> of old data when the datagrid bind method is called. 
> I want the textbox to look empty.
> 
> Thanks in advance for the help.
> 
> BDN RAO.
> 
> 
>       
>               
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to