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
720
How to change the ultragridrow appearance when source is changing?
posted

Hi,

 

I use an UltraDataSource and i modify his content programmatically and i can see the changes in the UltraGrid but how can i change the appearance depending on the change of the source?

 

Thank you,

 

Kind Regards.

Parents
No Data
Reply
  • 918
    posted

    Just stick a variable in the initialize layout method that lets you run two layouts:

     

     

     

    Private Sub mygrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles mygrid.InitializeLayout

     

     

    if datasource1= true then

    'run this initialize layout

    else

    'run this initialize layout 

    End Sub

     

Children