I placed a ReportControl on the form, this is the code.
AxReportControl5.PaintManager.ColumnStyle = XtremeReportControl.XTPReportColumnStyle.xtpColumnResource
AxReportControl5.EnableMarkup = True
AxReportControl5.PaintManager.ForceDynamicMarkupForCell = True
AxReportControl5.SetCustomDraw(XtremeReportControl.XTPReportCustomDraw.xtpCustomBeforeDrawRow)
AxReportControl5.PaintManager.TextFont.Name = Me.Font.Name
AxReportControl5.PaintManager.TextFont.Size = Me.Font.Size
AxReportControl5.PaintManager.PreviewTextFont.Name = Me.Font.Name
AxReportControl5.PaintManager.PreviewTextFont.Size = Me.Font.Size
AxReportControl5.PaintManager.HorizontalGridStyle = XtremeReportControl.XTPReportGridStyle.xtpGridNoLines
AxReportControl5.PaintManager.VerticalGridStyle = XtremeReportControl.XTPReportGridStyle.xtpGridNoLines
AxReportControl5.Icons = frmMENU.AxImageManager2.Icons
AxReportControl5.Columns.Add(0, ":Reg", -1, False)
AxReportControl5.Columns.Add(1, ":ID", -1, False)
AxReportControl5.Columns.Add(2, ":Referencia", -1, False)
AxReportControl5.Columns.Add(3, ":Nombre", 100, True)
AxReportControl5.Columns.Add(4, ":RIF", 30, True)
AxReportControl5.Columns(0).Tag = "reg"
AxReportControl5.Columns(1).Tag = "id"
AxReportControl5.Columns(2).Tag = "referencia"
AxReportControl5.Columns(3).Tag = "nombre"
AxReportControl5.Columns(4).Tag = "cedula"
AxReportControl5.PaintManager.NoItemsText = ":No hay registros que coumplan con el criterio de búsqueda"
AxReportControl5.PaintManager.FooterRowsDividerStyle = XtremeReportControl.XTPReportFixedRowsDividerStyle.xtpReportFixedRowsDividerShade
AxReportControl5.PaintManager.HeaderRowsDividerStyle = XtremeReportControl.XTPReportFixedRowsDividerStyle.xtpReportFixedRowsDividerShade
AxReportControl5.PaintManager.CaptionFont.Name = Me.Font.Name
AxReportControl5.PaintManager.CaptionFont.Size = Me.Font.Size
AxReportControl5.PaintManager.CaptionFont.Bold = True
AxReportControl5.PaintManager.UseAlternativeBackground = True
AxReportControl5.PaintManager.AlternativeBackgroundColor = RGB(176, 224, 230)
AxReportControl5.Columns(0).HeaderAlignment = XtremeReportControl.XTPColumnAlignment.xtpAlignmentRight
AxReportControl5.Columns(0).Alignment = XtremeReportControl.XTPColumnAlignment.xtpAlignmentRight
AxReportControl5.Columns(3).Alignment = XtremeReportControl.XTPColumnAlignment.xtpAlignmentIconVCenter + XtremeRe portControl.XTPColumnAlignment.xtpAlignmentIconLeft
AxReportControl5.ShowHeader = False
Dim MisDatos2 As OdbcDataReader
MisDatos2 = ConsultaGEN2.ExecuteReader
If MisDatos2.HasRows Then
Regs = 0
AxReportControl5.Records.DeleteAll()
Do While MisDatos2.Read
Regs = Regs + 1
MiItem = AxReportControl5.Records.Add()
MiItem.AddItem(Regs)
MiItem.AddItem("")
MiItem.AddItem("")
MiItem.AddItem("")
MiItem.AddItem("")
MiItem.Item(1).Value = MisDatos2.GetInt32(0)
MiItem.Item(2).Value = RNulo(MisDatos2.Item(1))
MiItem.Item(3).Value = RNulo(MisDatos2.Item(2))
MiItem.Item(4).Value = RNulo(MisDatos2.Item(3))
MiItem.Item(3).Icon = 160010
Loop
AxReportControl5.Populate()
If AxReportControl5.Rows.Count < 9 Then
AxReportControl5.Height = AxReportControl5.Rows.Count * 20.5
Else
AxReportControl5.Height = 9 * 19.5
End If