Edit in Master-Detail Grid

Discussion in 'ASP .Net' started by Ing. Rajesh Kumar, Mar 27, 2005.

  1. Hi Everybody
    I have Master Detail Grids. In Master Grid I am adding some buttons with
    different CommandNames. MasterGrid's OnItemCommand is as follows :
    Sub MasterGrid_Command(sender As Object, e As DataGridCommandEventArgs)
    IF E.CommandName = "xxx" Then
    'Do Something
    End IF
    IF E.CommandName = "ShowDetails" Then
    'Fill Details DataGrid
    End IF
    End Sub

    In DetailsGrid I have an Edit button which fires the following SUB, where I
    need help.
    Sub DetailsGrid_Edit(s As Object, e As DataGridCommandEventArgs)
    DetailsGrid.EditItemIndex = e.Item.ItemIndex
    MasterGrid_Command()
    End Sub

    I want to know, how should I pass the CommandName parameter "ShowDetails" to
    the MasterGrid_Command() SUB to rebind the DetailsGrid Correctly ?

    Thanks in advance
    Raja
     
    Ing. Rajesh Kumar, Mar 27, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ruca

    Master / Detail Grid

    ruca, Apr 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,160
  2. Luqman
    Replies:
    2
    Views:
    4,100
    Luqman
    Feb 1, 2006
  3. asmj
    Replies:
    0
    Views:
    649
  4. Arun Kumar Menon

    Master Detail detail

    Arun Kumar Menon, Aug 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    355
    Arun Kumar Menon
    Aug 6, 2003
  5. Jeppe Dige Jespersen

    Master/Detail in one grid

    Jeppe Dige Jespersen, Sep 20, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    261
    Jeppe Dige Jespersen
    Sep 22, 2004
  6. Frederik Borg

    ASp.net data binding: Master-detail-detail

    Frederik Borg, Jun 9, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    502
    Frederik Borg
    Jun 9, 2006
  7. PatLaf

    Master/Detail record...how to display in data grid

    PatLaf, Feb 5, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    468
    Patrick Laferriere
    Feb 6, 2004
  8. PatLaf

    Adding check list box inside master detail web grid

    PatLaf, Feb 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    12
    Views:
    773
    Jeffrey Tan[MSFT]
    Feb 26, 2004
Loading...