Home All Groups Group Topic Archive Search About

Binding to a column that is integer.

Author
2 Jun 2010 10:48 PM
Mr. X.
Hello.
I am binding a TextBox to an integer column.
The textbox cannot have empty value, even the column can assign to null.
How can I force empty value on the textBox, that is of integer type (not
zero).

Thanks :)

Author
3 Jun 2010 5:31 AM
Cor Ligthert[MVP]
Use the binding events

http://www.vb-tips.com/DataBindingEvents.aspx

Show quoteHide quote
"Mr. X." <nospam@nospam_please.com> wrote in message
news:OY2M$WqALHA.5464@TK2MSFTNGP05.phx.gbl...
> Hello.
> I am binding a TextBox to an integer column.
> The textbox cannot have empty value, even the column can assign to null.
> How can I force empty value on the textBox, that is of integer type (not
> zero).
>
> Thanks :)
>
Author
3 Jun 2010 5:34 PM
Mr. X.
It's binding.
Not databinding.
What should I do for databinding object (They are not the same events) ?
Thanks :)

Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:uiNJF4tALHA.1764@TK2MSFTNGP04.phx.gbl...
> Use the binding events
>
> http://www.vb-tips.com/DataBindingEvents.aspx
>
> "Mr. X." <nospam@nospam_please.com> wrote in message
> news:OY2M$WqALHA.5464@TK2MSFTNGP05.phx.gbl...
>> Hello.
>> I am binding a TextBox to an integer column.
>> The textbox cannot have empty value, even the column can assign to null.
>> How can I force empty value on the textBox, that is of integer type (not
>> zero).
>>
>> Thanks :)
>>
Author
7 Jun 2010 6:34 PM
LightStamp
Are you talking about declaring a variable as IsNullable of Integer then
setting it to Nothing
Which will let the column value remain NULL

Forgive me if I'm way off on what you're asking here

Show quoteHide quote
"Mr. X." <nospam@nospam_please.com> wrote in message
news:OY2M$WqALHA.5464@TK2MSFTNGP05.phx.gbl...
> Hello.
> I am binding a TextBox to an integer column.
> The textbox cannot have empty value, even the column can assign to null.
> How can I force empty value on the textBox, that is of integer type (not
> zero).
>
> Thanks :)