Yes it's possible. You can cast the object which is passed from the GetCurrentRow() method to the appropriate type (DataRowView) and then get all required values from it.
Otherwise, you can use the XtraRepor.GetCurrentColumnValue() method to get only appropriate column.
Please feel free to contact us if you need any additional assistance. We will be happy to help you.
Hi Young Lim,
Sure, here's a sample code snippet:
Private Sub Detail_BeforePrint(ByVal sender As Object, ByVal e As PrintEventArgs) ' Get the value of the current row in the master report. xrLabel1.Text = (CType(GetCurrentRow(), DataRowView)).Row("CategoryName").ToString() ' Get the value of the current cell in the CategoryName column in the master report. xrLabel2.Text = GetCurrentColumnValue("CategoryName").ToString() End Sub
See also: CType Function.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.