Property of object to binding

  • Thread starter Thread starter Boniek
  • Start date Start date
B

Boniek

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
 
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,
 
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
 
Back
Top