471,305 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Binding a Property ....

hi all
i have create my own usercontrol and i create this property

<BindableAttribute(True), _
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Hidden), _
DefaultValue(Nothing, Nothing)> _
Public Property Values() As Object
Return xValue
End Get
Set(ByVal Value As Object)
xValue = Value
End Set
End Property
and in my form i create a currencymanager, and i use the datatable event
ColumnChanging to change my buttons state.
i use the code below to bind my control with the datatable column
Me.MyUserControl1.DataBindings.Add("Value", dt, "CodeID")
i fill a datatable with values ( from an SQL ) and every time i change
position in the grid the columnchanging event is fired.
if i unbind the my controls property and doing the same operation the
ColumnChanging is not fired. can someone help me ??

Jul 21 '05 #1
0 858

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Scott Mueller | last post: by
11 posts views Thread by Rourke Eleven | last post: by
19 posts views Thread by Simon Verona | last post: by
reply views Thread by Larry Serflaten | last post: by
3 posts views Thread by gregory_may | last post: by
6 posts views Thread by Mikus Sleiners | last post: by
5 posts views Thread by star-italia | last post: by
4 posts views Thread by =?Utf-8?B?Y2xhcmE=?= | last post: by
reply views Thread by rosydwin | last post: by

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.