473,799 Members | 3,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Binding checkboxes and date time picker [vb.net 2003]

Hi there

i'm trying to bind a checkbox and some date time picker fields to a dataset.

this is wat i have tried for the check box but it doesnt seen to work

chkObservation. DataBindings.Ad d("text", dsChildData,
"Child.ChildObs ervation")

SO how would i go about binding this?

Any suggestion would be helpfuly

thanks.
Mar 5 '06 #1
7 6757
Hardik,

Try the "Value" instead of the "text" in the datetimepicker. I thought that
it was "checked" in the checkbox. I am always confused by that one.

In the checkbox is the text the description. I assume that you want the
boolean value.

I hope this helps,

Cor
Mar 6 '06 #2
Hi,

When I take 'value' instead of 'text' (dtp1.DataBindi ngs.Add("value" , ds,
"ac_tran.tdate" )) , following error occured.

Additional information: DataBinding could not find a row in the list that is
suitable for all bindings

Hardik Shah

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:uy******** *****@TK2MSFTNG P14.phx.gbl...
Hardik,

Try the "Value" instead of the "text" in the datetimepicker. I thought that it was "checked" in the checkbox. I am always confused by that one.

In the checkbox is the text the description. I assume that you want the
boolean value.

I hope this helps,

Cor

Mar 6 '06 #3
Hardik,

In this way (which is not the same as your original one), do you try to bind
a dataset.

There are more ways. However this way as you have it now will fail as well
with text.

When I take 'value' instead of 'text' (dtp1.DataBindi ngs.Add("value" , ds,
"ac_tran.tdate" )) , following error occured.
(dtp1.DataBindi ngs.Add("value" , ds.Tables(0),"a c_tran.tdate"))
or something like that

Cor

Additional information: DataBinding could not find a row in the list that
is
suitable for all bindings

Hardik Shah

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:uy******** *****@TK2MSFTNG P14.phx.gbl...
Hardik,

Try the "Value" instead of the "text" in the datetimepicker. I thought

that
it was "checked" in the checkbox. I am always confused by that one.

In the checkbox is the text the description. I assume that you want the
boolean value.

I hope this helps,

Cor


Mar 6 '06 #4
Hi,

Thanks for your prompt reply.

Last Code used by me (dtp1.DataBindi ngs.Add("value" , ds, "ac_tran.tdate" ))
for date time picker.

Hardik

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:#e******** ******@TK2MSFTN GP11.phx.gbl...
Hardik,

In this way (which is not the same as your original one), do you try to bind a dataset.

There are more ways. However this way as you have it now will fail as well
with text.

When I take 'value' instead of 'text' (dtp1.DataBindi ngs.Add("value" , ds, "ac_tran.tdate" )) , following error occured.

(dtp1.DataBindi ngs.Add("value" , ds.Tables(0),"a c_tran.tdate"))
or something like that

Cor

Additional information: DataBinding could not find a row in the list that is
suitable for all bindings

Hardik Shah

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:uy******** *****@TK2MSFTNG P14.phx.gbl...
Hardik,

Try the "Value" instead of the "text" in the datetimepicker. I thought

that
it was "checked" in the checkbox. I am always confused by that one.

In the checkbox is the text the description. I assume that you want the
boolean value.

I hope this helps,

Cor



Mar 6 '06 #5
Hardik, is ds a datatable?

Cor
>

(dtp1.DataBindi ngs.Add("value" , ds.Tables(0),"a c_tran.tdate"))
or something like that

Cor

Mar 6 '06 #6
ds is a dataset

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:OC******** ******@TK2MSFTN GP15.phx.gbl...
Hardik, is ds a datatable?

Cor
>
(dtp1.DataBindi ngs.Add("value" , ds.Tables(0),"a c_tran.tdate"))
or something like that

Cor


Mar 6 '06 #7
>> Hardik, is ds a datatable?
Than why did you not follow my sample?

Cor
Cor
>> >
>> (dtp1.DataBindi ngs.Add("value" , ds.Tables(0),"a c_tran.tdate"))
>> or something like that
>>
>> Cor



Mar 6 '06 #8

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

Similar topics

5
7107
by: Adrian Parker | last post by:
Hi. I have a date time picker in my program which uses ADO to read from an Access database. It works perfectly, unless the database is empty (no records) when opened. When you try to open an empty database, the date time picker returns error 545. Any attempts to progmatically add new records after the empty database has been opened returns, or to use the DTP and set a new date for those added records, "Field not updateable, Bound...
13
3098
by: Deano | last post by:
Hi, I generate a report using two dates (From and To). I notice if I enter 01/10/2003 that it is interpreted by Access as 10/01/2003 i.e 10th January rather than 1st October as I intended. This is the old problem of US date format mm/dd/yy versus dd/mm/yy. I am stepping through the code and the dates do seem to be ok but when the report runs I get records earlier than 1st October which is not what I want.
2
3956
by: Need Helps | last post by:
The example given in msdn.com on how to create a Date Time Picker involves using the CreateWindowEx function. However, I created a dialog box using the graphical interface, and then used the graphical interface to add a Date Time Picker control to it. The only problem is, I don't know how to do anything with the Date Time Picker, like access the date selected within the control. All I have is the ID, which in my code is IDC_DATETIMEPICKER1. ...
4
18955
by: Rethish | last post by:
Hi All, I am developing an application in VB.net. I am using .Net Datetime picker control to manage the date. But I am not able to assign null/Empty value to the control. I found the property "Checked" to work with this control..But I cannot use this property for making null dates.. Is there any way to solve this problem?. Expecting any help or suggestions? Regards,
4
2673
by: Michael Turner | last post by:
Hi Guys I have two DateTime pickers one shows the Date and the other the time, this is a requirement of the solution. The problem I have is that when the time is saved to the sql database into a datetime field it uses the default date which is a problem when I try to sort, what I wanted to know is there a way for me to set the date in the time picker to the date in the date picker? Any help greatly appreciated.
5
5903
by: Johnaton | last post by:
hi, I have this problem with the date time picker, when I bind the control to data table and add new record, it is ok, however, if I delete all records via a button using the me.bindingcontext(datatable).removeat(me.bindingcontext(dataTable).position) statement, it always throw the following error .. A first chance exception of type 'System.ArgumentException' occurred in system.dll
2
2418
by: Darhl Thomason | last post by:
I'm converting my Access 2003 VBA app. I have a number of date fields in my db that I want to use the date/time picker control with, but if there is no entry in my database, I want the date/time picker to show no date. Right now the first time it shows a blank date record, it inserts today's date. But as I move through the db and it finds a date in that field, the next time it finds a blank data record, it uses the last one as the...
4
4878
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating event of the control and add this code
0
2846
by: fredloh | last post by:
i have a tab control on my form. i then have several microsoft date and time picker control on the tab control. when i select a date on any of the date and time picker control, the result of the control's value is always 12:00:00 am instead of the date i selected even though the date displays correctly on the date and time picker control. the controls are unbound. why is this? i also have another identical form where the date and...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10238
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.