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
150
Dynamically Change the column headers in the grid control
posted

Hi,

I have a standard datagrid on a screen and dynamically change the column headers based on other data.  I would like to use this approach using the Infragistics grid so that I can make use of the summary row feature.  I have imported the Infragistics.Controls.Grids namespace (VB.net please!) but cannot find the Grid element to replace 'DataGrid' in this code sample:           

Private Sub PCVCtrl_Available(sender As Object, e As ControlAvailableEventArgs)

            If TypeOf (e.Control) Is DataGrid Then
                _DG = CType(e.Control, DataGrid)              
            End If

End Sub

Any ideas?

Regards,

 

Alan

Parents
No Data
Reply
  • 28407
    posted

    HI,

     I am assuming you added your Import Infragistics.Controls.Grids and  you added the Reference Infragistics.Controls.Grids.

     I am not familiar with the Available Event, check your logic that creates the AvailableEventArgs and make sure it passes the XamGrid control when the event is triggered.

    Sincerely,
     Matt
     Developer Support Engineer

Children