Hi,
I am using WinGrid throughout my project all of which I want to be able to export, print, PDF etc. I have created a single Form to do this which I pass the source grid..
Sub LoadUltraGrid(ByVal grdSource As UltraWinGrid.UltraGrid) grdExport = grdSource grdExport.DataBind() grdExport.ResumeLayout() grdExport.Refresh() End Sub
For some reason the WinGrid displays nothing other than the GroupBy bar although if I Watch the WinGrid the rows are there..
Can anyone help?
Thanks
This is probably because your grid has no BindingContext. Try adding the grid to the form's Controls collection before you call DataBind. Or, if that doesn't work, set the grid's BindingContext property to the form's BindingContext.
I've added the code below but still no luck. your suggestion makes sense but I can see the Group By header of the grid so it is there... I just can see anything else
grdExport.BindingContext = Me.BindingContext Me.Controls.Add(grdExport)