Need help

View: New views
3 Messages — Rating Filter:   Alert me  

Need help

by Parth Gandhi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   

I am develop my application on .Net 2.0 with use of Ibatis.
I used xml, but I can't bind directly with Controls like textbox, label
etc...

Can anybody help me regarding this....

Regards,
- Parth




RE: Need help

by Michael McCurrey (5318) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If your going to use data-binding with a light-weight ORM like Ibatis,
your custom objects should implement the following two interfaces:
  INotifyPropertyChanged
  IDataErrorInfo

There's tons of information out there about proper handling of them.

For the collections, looking into IBindingList for proper handling of
the collection.

You can also databind directly to the objects using a BindingSource and
then binding to the type declaration..



-----Original Message-----
From: Parth Gandhi [mailto:pgandhi@...]
Sent: Wednesday, June 18, 2008 1:57 AM
To: Ibatis User
Subject: Need help

   

I am develop my application on .Net 2.0 with use of Ibatis.
I used xml, but I can't bind directly with Controls like textbox, label
etc...

Can anybody help me regarding this....

Regards,
- Parth




Parent Message unknown Re: Need help

by Ron Grabowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't understand your problem. IBatisNet is used for data access. TextBox and Label controls are UI elements. You'll need to write some code that calls the data layer then takes the returned values and sets the appropriate properties on the UI elements.

----- Original Message ----
From: Parth Gandhi <pgandhi@...>
To: Ibatis User <user-cs@...>
Sent: Wednesday, June 18, 2008 4:57:08 AM
Subject: Need help

 

I am develop my application on .Net 2.0 with use of Ibatis.
I used xml, but I can't bind directly with Controls like textbox, label
etc...

Can anybody help me regarding this....

Regards,
- Parth
LightInTheBox - Buy quality products at wholesale price!