Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
995
datacard header
posted

HI,

how do i access the header of xampresenter (datacard option)?

my code looks like:

Private Sub myDataPresenter_RecordActivated(sender As Object, e As Infragistics.Windows.DataPresenter.Events.RecordActivatedEventArgs) Handles myDataPresenter.RecordActivated

If TypeOf e.Record Is FilterRecord Then
Exit Sub
End If

' Check to make sure the selected Record is a DataRecord
If TypeOf e.Record Is DataRecord Then
' Cast the record passed in as a DataRecord
Dim myRecord As DataRecord = CType(e.Record, DataRecord)

'bring up the extra required fields
Dim myProgrammeExerciseSpecs As New ProgrammeExerciseSpecs

myProgrammeExerciseSpecs.exerciseid =THIS IS WHERE I NEED TO GET THE HEADER TEXT
myProgrammeExerciseSpecs.programmid = myprogrammeid
myProgrammeExerciseSpecs.programmetitle = Me.cbotitle.Text.ToString()
myProgrammeExerciseSpecs.programmedesc = Me.txtcontent.Text.ToString()
myProgrammeExerciseSpecs.lbltitle.Content = myRecord.Cells(0).Value.ToString()
myProgrammeExerciseSpecs.txtcontent.Text = myRecord.Cells(1).Value.ToString()
myProgrammeExerciseSpecs.ShowDialog()

End If

End Sub

Parents Reply Children
No Data