Hi,

If controls (textboxs,combos,etc...) are dataset-bound and dataset is
used interchangeably (rowfilter on and off), do I have to clear
bindings when user get different no. of records, or binding context
will adjust itself to this?? That is, do I have to call this sub each
time row filter is changed (on and off)


Sub clearbinding()
Dim ctl As Control
Dim txt As Control


ds.Tables("employees").clear
For Each ctl In frmemp.Controls
If TypeOf ctl Is GroupBox Then
For Each txt In ctl.Controls
If TypeOf txt Is TextBox Then
txt.Text = ""
txt.DataBindings.Clear()
End If
Next
End If
Next
ds_changexposition()
End Sub
MTIA,
Grawsha

Re: Controls Binding Inquiry? by Miha

Miha
Fri Dec 19 02:29:17 CST 2003

Hi al,

"al" <grawsha2000@yahoo.com> wrote in message
news:66edfd3c.0312182142.3bf3f192@posting.google.com...
> Hi,
>
> If controls (textboxs,combos,etc...) are dataset-bound and dataset is
> used interchangeably (rowfilter on and off), do I have to clear
> bindings when user get different no. of records, or binding context
> will adjust itself to this?? That is, do I have to call this sub each
> time row filter is changed (on and off)

I don't think it is necessary at all.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com