Update DataGrid2 based on value of DataGrid1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • irfan.ahmed

    #1

    Update DataGrid2 based on value of DataGrid1

    Dear All,

    Kindly let me know how to update datagrid2 based on value of
    datagrid1, I have one datagrida filled with current sale and its
    updating continuously, I need to show in datagrid2 summaries view of
    datagrid1, I dont want to query again from database, I just want to
    use datagrid1's current record to use to display summay in datagrid2

    Thank you in anticipation
  • Jay Riggs

    #2
    Re: Update DataGrid2 based on value of DataGrid1

    On Nov 11, 1:17 am, "irfan.ahme d" <irfan.khi...@g mail.comwrote:
    Dear All,
    >
    Kindly let me know how to update datagrid2 based on value of
    datagrid1, I have one datagrida filled with current sale and its
    updating continuously, I need to show in datagrid2 summaries view of
    datagrid1, I dont want to query again from database, I just want to
    use datagrid1's current record to use to display summay in datagrid2
    >
    Thank you in anticipation

    Irfan,

    You might look into creating a master-detail relationship between your
    two DataGrids. Your datagrid1 will list sales and datagrid2 will show
    the summaries view you mention when a row in datagrid1 is selected.

    Check out this link:
    http://msdn.microsoft.com/en-us/libr...28(VS.71).aspx

    I assume your using .NET 1.x since you mention the DataGrid.

    If you're using .NET 2.0 check out:
    http://msdn.microsoft.com/en-us/libr...x4(VS.80).aspx

    -Jay

    Comment

    Working...