Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15556

VB.net - Issue with a textbox using databinding

$
0
0
Hi,
I am experiencing an irritating issue which I am unable to figure out.
I am binding a datatable to a textbox and I would like that there is no text in the text box at load but there is always the value of the first record in the textbox.
This is my code:
Code:


TXT_Register_LinkedDV.DataBindings.Clear()
TXT_Register_LinkedDV.DataBindings.Add("Text", Shared_DVTable, "DEVIATION_NUMBER")

TXT_Register_LinkedDV.AutoCompleteMode = AutoCompleteMode.SuggestAppend
TXT_Register_LinkedDV.AutoCompleteSource = AutoCompleteSource.CustomSource

TXT_Register_LinkedDV.Text = Nothing' here I hoped that I could clean the box

How do I get rid of the text in this textbox after binding?

Thanks.

Viewing all articles
Browse latest Browse all 15556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>