Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Jan 2002
    Location
    Rochester, Kent, United Kingdom
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Data Grid (C# VS2005)

    Hi Guys
    got a data grid on a form, main form uses BLDG table, Data Grid uses LEAS table, Linked by BLDGID. How do i get the data grid to update when the main form changes?

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Data Grid (C# VS2005)

    Hi Simon,

    Is there a parent-child relationship between the main form data and the datagrid?

    If so, you would need to update the data source of the datagrid whenever the data in the main form changes then re-bind the grid.

    I'm not quie clear from your post if you have 2 datagrids or just form fields for the parent and a datagrid for the children. If you have 2 datagrids, then you'll want to use the ItemSelected event of the parent datagrid to perform the previously-mentioned tasks.

    Hope this helps!

Posting Permissions

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