AD
Administrator
Syncfusion Team
April 5, 2006 06:28 AM UTC
Hi Steve,
Please try the below snipped code to get the current record form parent/child table.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim el As Element = Me.GridGroupingControl1.Table.GetInnerMostCurrentElement()
Dim rec As GridRecord = CType(IIf(TypeOf el Is GridRecord, el, Nothing), GridRecord)
If Not (rec Is Nothing) Then
MessageBox.Show(rec.GetValue("Railcar") + " - " & rec.GetValue("MoveDate"))
End If
End Sub
Regards,
Calvin.
SK
Steve Killingsworthnolongercoding.NET
April 5, 2006 01:05 PM UTC
>Hi Steve,
>
>Please try the below snipped code to get the current record form parent/child table.
>
>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
>
> Dim el As Element = Me.GridGroupingControl1.Table.GetInnerMostCurrentElement()
> Dim rec As GridRecord = CType(IIf(TypeOf el Is GridRecord, el, Nothing), GridRecord)
> If Not (rec Is Nothing) Then
> MessageBox.Show(rec.GetValue("Railcar") + " - " & rec.GetValue("MoveDate"))
> End If
>
> End Sub
>
>Regards,
>Calvin.
>
Thanks...It Worked