I am trying out 10.2a beta version and trying to dynamically add a column to the ultrawingrid. The following code snipped works fine as far as adding a column goes-
METHOD PRIVATE VOID custGrid_InitializeLayout( INPUT sender AS System.Object, INPUT e AS Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs ):
DEFINE VARIABLE imageColumn AS Infragistics.Win.UltraWinGrid.UltraGridColumn.
imageColumn = e:Layout:Bands[0]:Columns:Insert(0, "MyLogical").
END METHOD.
But I couldn't figure out a way to set the data type (other than character) for this column. The code in VB for setting the data type is imageColumn.DataType = GetType (BOOLEAN) but it doesn't seem to work with Progress.
Thanks
Follow the participan login from www.progress.com/beta to the beta forum for this kind of questions.
Thread moved from OpenEdge ABL to this 10.2A Beta forum.
Salvador
Noorien,
You could try imageColumn:DataType = System.Type:GetType("System.Boolean").
JL