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
470
WinGrid = AnotherWinGrid
posted

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

Parents
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children