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
Got a solution to the problem. It seems the html emitted for the Infragistics Web Grid always contains the concatenated BaseColumnNames of the grid columns. I override the OnPreRender method to change the caption.
{
}
Thanks
hemangajit said: Do know anyway by which I can upload an attachment here? An attachment would have been helpful.
Do know anyway by which I can upload an attachment here? An attachment would have been helpful.
The compose page has an Options tab, which allows attachments. But I've had trouble trying to attach more than one file per post.
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.
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