Hi,
I have a number of binding navigator controls on my form. I add "plus"
buttons (buttons used to add a new row to the relevant datagirdview)
to them as follows -
bindingNavigato r.AddNewItem.En abled = false;
this.bindingNav igator.Items.Ad dRange(new
System.Windows. Forms.ToolStrip Item[]
{
...
this.bindingNav igatorAddNewIte m,
...
});
Each Binding Navigator has a "plus" toolStripButton which I add an
event to as follows -
this.bindingNav igatorAddNewIte m.Click += new
System.EventHan dler(this.AddRo wToDataGridView );
All the plus buttons have the exact same handler -
this.AddRowToDa taGridView.
I was wondering if it would be possible to loop through my
BindingNavigato rs and identify those toolStripButton s that have
this.AddRowToDa taGridView as a handler. By doing so, I can identify
all "plus" buttons and set these buttons as disabled or enabled as I
so desire.
Thanks,
Barry
I have a number of binding navigator controls on my form. I add "plus"
buttons (buttons used to add a new row to the relevant datagirdview)
to them as follows -
bindingNavigato r.AddNewItem.En abled = false;
this.bindingNav igator.Items.Ad dRange(new
System.Windows. Forms.ToolStrip Item[]
{
...
this.bindingNav igatorAddNewIte m,
...
});
Each Binding Navigator has a "plus" toolStripButton which I add an
event to as follows -
this.bindingNav igatorAddNewIte m.Click += new
System.EventHan dler(this.AddRo wToDataGridView );
All the plus buttons have the exact same handler -
this.AddRowToDa taGridView.
I was wondering if it would be possible to loop through my
BindingNavigato rs and identify those toolStripButton s that have
this.AddRowToDa taGridView as a handler. By doing so, I can identify
all "plus" buttons and set these buttons as disabled or enabled as I
so desire.
Thanks,
Barry
Comment