Dynamic Column in ultrawingrid 10.2A Beta

Posted by noorienraza on 29-Aug-2008 07:08

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

All Replies

Posted by Admin on 29-Aug-2008 07:12

Follow the participan login from www.progress.com/beta to the beta forum for this kind of questions.

Posted by svi on 29-Aug-2008 08:03

Thread moved from OpenEdge ABL to this 10.2A Beta forum.

Salvador

Posted by Admin on 29-Aug-2008 08:20

Noorien,

You could try imageColumn:DataType = System.Type:GetType("System.Boolean").

JL

This thread is closed