Results 1 to 5 of 5

Thread: [RESOLVED] Datagrid problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Location
    London United Kingdom
    Posts
    334

    Resolved [RESOLVED] Datagrid problem

    Hi I have a dategrid on my form and I can't edit any cell in the datagrid could any one help me out.
    thanks

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Datagrid problem

    Is it a bound grid?
    How is it populated?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Location
    London United Kingdom
    Posts
    334

    Re: Datagrid problem

    Quote Originally Posted by petevick
    Is it a bound grid?
    How is it populated?
    Yes it is bond to a dataset and it is populated upon selecting somethngfrom a combobox which selectedvalue is the value to the command value.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Datagrid problem

    http://msdn.microsoft.com/en-us/library/ms180748.aspx should help for VS2008, or for VS2005 you can provide a invisble control for data entry (TextBox, ComboBox, etc) and then handle the "DoubleClick" event for the DataGrid. In that handler, use the DataGrid.CurrentCell to determine your current cell. Then, set the bounds of your TextBox (or other control) to DataGrid.GetCellBounds. Finally, you can copy the contents of the cell to your TextBox, Select it, make it visible, and edit away - does that help?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Location
    London United Kingdom
    Posts
    334

    Re: Datagrid problem

    Thanks very much

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