473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Bind an Integer Property

Hi all
i have made one control, and one of the properties is an integer property.
when i made the bind of that property with the view, is does not alow to be
null? is there any solution ?????
but i need this property to be null.

EX

Public Property MyProp () as integer
...........
Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")

thks
JSB
Jul 21 '05 #1
3 1275
Do you get an error? Does the underlying database field definition allow
nulls?

Jeff
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hi all
i have made one control, and one of the properties is an integer property.
when i made the bind of that property with the view, is does not alow to be null? is there any solution ?????
but i need this property to be null.

EX

Public Property MyProp () as integer
..........
Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")

thks
JSB

Jul 21 '05 #2
Yes the database allow null, but the problem is when i do
"Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")" it gets an
exception..

JSB
<je**@removeemergencyreporting.com> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Do you get an error? Does the underlying database field definition allow
nulls?

Jeff
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hi all
i have made one control, and one of the properties is an integer
property.
when i made the bind of that property with the view, is does not alow to

be
null? is there any solution ?????
but i need this property to be null.

EX

Public Property MyProp () as integer
..........
Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")

thks
JSB


Jul 21 '05 #3
And the error message is?

"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:Ou**************@TK2MSFTNGP11.phx.gbl...
Yes the database allow null, but the problem is when i do
"Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")" it gets an
exception..

JSB
<je**@removeemergencyreporting.com> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Do you get an error? Does the underlying database field definition allow nulls?

Jeff
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hi all
i have made one control, and one of the properties is an integer
property.
when i made the bind of that property with the view, is does not alow
to be
null? is there any solution ?????
but i need this property to be null.

EX

Public Property MyProp () as integer
..........
Me.UltraLabel1.DataBindings.Add("MyProp", xView, "xField")

thks
JSB



Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Morten Hauge | last post by:
Hi! I have a problem, I'm not sure if this is the proper way to do it, but I have the following scenario: I want to list all categories, and all products in that category whenever I select a...
1
by: Doug D via .NET 247 | last post by:
I really really need some insight on this problem I am trying to bind a strongly typed collection object to a datagrid. I already Inherited CollectionBase, but .NET says that it cannot find my...
1
by: john wright | last post by:
I have a dictionary oject I created and I want to bind a listbox to it. I am including the code for the dictionary object. Here is the error I am getting: "System.Exception: Complex...
12
by: Monty | last post by:
Hope this is an easy one: How can I bind a text on a form to a an integer variable? Possible? Thanks!
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.