473,385 Members | 2,005 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,385 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 1274
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.