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
70
The AddNewBox button is displaying the column names to which the grid columns are databound
posted

Hi,

        I am evaluating the Infragistics Web Grid product. I am using the AddNewBox button in the grid to add rows to the grid. However I can see that the AddNewBox button is displaying the entire column names to which the web grid columns are databound. Is there any way to remove them and put my custom text? An early resonse will be highly appreciated.

Thanks and Regards

---------------------------------

Hemangajit 

 

Parents
  • 640
    posted

     Are you trying to change the column header text? You can do this in the InitializeLayout event.

     For example, to change the first column header by index in the first band of the grid:

     Protected Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout
            e.Layout.Bands(0).Columns(0).Header.Caption = "PO Number"
        End Sub

     

    To change a caption by column key:

     Protected Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout
            e.Layout.Bands(0).Columns.FromKey("PONumber").Header.Caption = "PO Number"
        End Sub 

Reply Children