Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / February 2006

Tip: Looking for answers? Try searching our database.

Problem with Enabled/Disabled AlloEdit in BindingSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Antoni Gomez - 15 Feb 2006 13:51 GMT
Hello.

I have a GridView connected with bindingSource and BindingNavigator.

I want disable to delete the grid at run time.

For this, I disabled the DeleteButtonItem on the BindingNavigator Bar and
disabled the AllowUsertoDeleteRows property of the Grid.

The problem is that  when I run the program, the DeleteButtonItem of the
BindingNavigator Bar is disabled but
when I click on the grid, the DeleteButtonItem on the BindingNavigator Bar
is Enable.

Can you help Me?

Best Regards
Antoni Gomez
Bart Mermuys - 15 Feb 2006 15:56 GMT
Hi,

> Hello.
>
[quoted text clipped - 11 lines]
>
> Can you help Me?

In Form_Load add something like:

private void Form_Load(..)
{
  // ...
  // ...
  ((DataView)someBindingSource.List).AllowDelete = false;
}

HTH,
Greetings

> Best Regards
> Antoni Gomez
Antoni Gomez - 16 Feb 2006 09:05 GMT
Thank you for your Reply.

I see another problem. The AllowNew and the AllowDelete properties works
fine but the AllowEdit property doesn't work.

I am using datagridview and textboxes (Master-Details)

Thanks for your help
Antoni Gomez

> Hi,
>
[quoted text clipped - 28 lines]
>> Best Regards
>> Antoni Gomez
Bart Mermuys - 16 Feb 2006 15:11 GMT
Hi,

> Thank you for your Reply.
>
> I see another problem. The AllowNew and the AllowDelete properties works
> fine but the AllowEdit property doesn't work.
>
> I am using datagridview and textboxes (Master-Details)

The DataGridView seems to honour the AllowEdit, but the simple
Controls/Bindings don't.  Don't think there is much you can do except for
disabling the Controls manually.

HTH,
Greetings

> Thanks for your help
> Antoni Gomez
[quoted text clipped - 31 lines]
>>> Best Regards
>>> Antoni Gomez
Antoni Gomez - 21 Feb 2006 11:12 GMT
I resolved the problem.

Thanks a lot.

> Hi,
>
[quoted text clipped - 47 lines]
>>>> Best Regards
>>>> Antoni Gomez

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.