Edit in Master-Detail Grid

I

Ing. Rajesh Kumar

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top