Results 1 to 2 of 2

Thread: Data Grid

  1. #1

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    Question Data Grid

    Can Anybody tell me how to set up a bound datagrid to allow a user to edit a row but not allow them to delete or add a new row?
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    After you setup the datasource for it add an edit column but don't add a delete column. There is no default insert button or anything so thats it. You'll need to handle the editing and updating through code via the EditCommand and UpdateCommand events.

    http://www.ondotnet.com/pub/a/dotnet...tl.html?page=3

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