473,659 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Property of object to binding

Hi,

How I can create property to binding with other objects. I want to
create a data object which work as a DataTable.
DataTable contains columns and dataTable is used to binding with a
textBox etc. How I can create that object but I don't want any static
properties in source code. I implemented IDataBinding in my object but
when I'm binding my TextBox to this data object than my application
raise exception which tell me that my object don't contain a specified
property.

Thank's all.

Boniek

Nov 16 '05 #1
3 2089
Hi,

Are you working on web or win app?

I'm working on web app and the binding works great in this way:
<asp:Label id="recordID" Runat="server" Text='<%#
((CtpRecord)Con tainer.DataItem ).ID.ToString() %>'></asp:Label>

There is no special need for the class being binded (CtpRecord in the
example above )
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Boniek" <mo****@poczta. onet.pl> wrote in message
news:40******@n ews.home.net.pl ...
Hi,

How I can create property to binding with other objects. I want to
create a data object which work as a DataTable.
DataTable contains columns and dataTable is used to binding with a
textBox etc. How I can create that object but I don't want any static
properties in source code. I implemented IDataBinding in my object but
when I'm binding my TextBox to this data object than my application
raise exception which tell me that my object don't contain a specified
property.

Thank's all.

Boniek

Nov 16 '05 #2
> How I can create property to binding with other objects. I want to
create a data object which work as a DataTable.
DataTable contains columns and dataTable is used to binding with a
textBox etc. How I can create that object but I don't want any static
properties in source code. I implemented IDataBinding in my object but
when I'm binding my TextBox to this data object than my application
raise exception which tell me that my object don't contain a specified
property.

Answer: interface ITypedList

I hope I help other people.

Boniek

Nov 16 '05 #3
> How I can create property to binding with other objects. I want to
create a data object which work as a DataTable.
DataTable contains columns and dataTable is used to binding with a
textBox etc. How I can create that object but I don't want any static
properties in source code. I implemented IDataBinding in my object but
when I'm binding my TextBox to this data object than my application
raise exception which tell me that my object don't contain a specified
property.

Answer: interface ITypedList

I hope I help other people.

Boniek

Nov 16 '05 #4

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

Similar topics

18
4746
by: Robin Becker | last post by:
Is there a way to override a data property in the instance? Do I need to create another class with the property changed? -- Robin Becker
2
325
by: Boniek | last post by:
Hi, How I can create property to binding with other objects. I want to create a data object which work as a DataTable. DataTable contains columns and dataTable is used to binding with a textBox etc. How I can create that object but I don't want any static properties in source code. I implemented IDataBinding in my object but when I'm binding my TextBox to this data object than my application raise exception which tell me that my object...
4
3957
by: Bill Coan | last post by:
NOTE: This was posted earlier to vsnet.vstools.office under a different subject line but received no response. I'm having a problem automating Word's Find object from a .NET application, using late binding. If I use early binding, my code runs fine on most systems, but it is vulnerable to a known bug explained here: http://support.microsoft.com/default.aspx?scid=kb;en-us;292744
8
2017
by: Al | last post by:
I'd like to create Class Library in VB 2005, which has a property accessible by external programs. I decided to include 1 Class with 1 property in this project. I placed this code in Class: Public Class COM Private mMyProp As String Public Property MyProp() As String
8
2255
by: stephen | last post by:
Hi, I make use of properties to store values that are relevant to the page but this time I am posting the page to itself and the values are Zero or null (they disappear). is there any other way I can store them/preserve them so that when I post back I can use the values. I tried session and it works but some other ideas would be helpful. Appreciate your help, Stephen
3
2154
by: TS | last post by:
when binding to a datagrid for example, is it possible to use databinding syntax to bind to a property of a property? Say the datasource="Cars" which is a collection of car classes and the DataValueField = "Driver.Name" which is the Car.Driver property and then the Driver.Name property. thanks
7
2010
by: Naveen | last post by:
I posted this message to another board and have hardly had any views on it, leave alone answers. So I am cross-posting here. This may be a very simple question but I can't get my head around it. I have a textbox's enabled property bound to the IsNew property of an object. this.txtPhone1.DataBindings.Add("Enabled", this.BindingSource, "IsNew", true); So when the IsNew property is true, my textbox is enabled. This is correct
7
1883
by: Computer Guru | last post by:
Hi, Pardon the unclear/verbose subject, I just can't think of another way of phrasing it. Basically, I can assign the (for instance) "Location" property of a picture box to a data-bound item. Like, I can get the absoloute location from an ADO.NET database, and assign it to the PictureBox.Location property.
5
3938
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hi, I have a couple of labels on a form and their visible property is bound to boolean properties on a custom object. When I first load the form, all works as it should. This form is 'tied' together with a search form, and the user can go back and forth. When the user hits ok, the form is hidden and the search form is shown and visa-versa. The problem is that when the form is hidden when the labels visible property is False, and then...
1
4711
by: =?Utf-8?B?VG9kZCBCZWF1bGlldQ==?= | last post by:
I have a "Save Changes" button on the form. I'm binding its IsEnabled property to a property of the object that I'm dealing with. When I connect the panel the buttons are in with an object (set the DataContext when the user selects an object from a list), the buttons correctly evaluate. When I tweak the property in the object, the notification is correctly evaluated and the button's state changes as expected. When I first load the form,...
0
8428
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
8335
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
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
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...
0
8627
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
7356
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
5649
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();...
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.