473,387 Members | 1,440 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,387 software developers and data experts.

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 2065
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)Container.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******@news.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
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
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...
4
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...
8
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:...
8
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...
3
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...
7
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....
7
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....
5
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'...
1
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...
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
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?
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
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,...

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.