CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    60

    modifying data in datagrid control ?

    hi,
    I set up my datagrid control based on a command object in a data environment.
    Everything displays nicely, except that I can't edit, add or delete anything.
    Does anybody know why ?

    thanks,
    Maggie



  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: modifying data in datagrid control ?

    The DataGrid control is a Readonly control. To update it you need overlay the cell you wish to update with a textbox or some such control, Allow the user to change the textbox, then you mirror the change to the dataBase. refreshing the DataGrid should update the datagrid.

    John G

  3. #3
    Join Date
    Apr 2001
    Posts
    60

    Re: modifying data in datagrid control ?

    Thank you very much. I misunderstood. I'll try doing that.

    Maggie



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

Featured