Results 1 to 2 of 2

Thread: Prevent user from adding and deleting in datagrid

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    36

    Prevent user from adding and deleting in datagrid

    Hi,

    I have a vb.net application. I use data adapter to generate a dataset and bind the dataset to a datagrid. The user can edit the records that are shown in the datagrid. But Adding new and deleting are not allowed.
    How to prevent the user from adding and deleting record in a vb.net datagrid?

    Thanks,

    James

  2. #2
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    set the AllowAdd and AllowDelete property to false.

    Maybe, the property name is not correct. Checkout something like that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width