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.