hanct
March 29th, 2009, 02:14 AM
Hi,
I am using form 2.0 to create a form in visual studio 2008. In this form, there is a textbox. I bind this textbox to a datatable , which will be populated by the data in the sql server database, when the form is launched.
Now here is the problem. I want my textbox to be empty initially, so that when user enter a value and press the save button, the value in the textbox will goes into the datatable.
But whenever I launch my form, my textbox always get populated by some value (I am not suprise since my textbox is binded to a datatable's column).
So question is how to I make my textbox empty initially while it is still bind to the datatable?
I am using form 2.0 to create a form in visual studio 2008. In this form, there is a textbox. I bind this textbox to a datatable , which will be populated by the data in the sql server database, when the form is launched.
Now here is the problem. I want my textbox to be empty initially, so that when user enter a value and press the save button, the value in the textbox will goes into the datatable.
But whenever I launch my form, my textbox always get populated by some value (I am not suprise since my textbox is binded to a datatable's column).
So question is how to I make my textbox empty initially while it is still bind to the datatable?