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
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
Thanks for your reply. Actually I want to change the caption of the AddNewBox located at the bottom of the grid. Presently it is showing the database columns by default.
Do know anyway by which I can upload an attachment here? An attachment would have been helpful.
Thanks