>Hi everyone,
>
> Sorry for this simple question. My problem is:
> I have a grid which I populated in Init method with following:
>
> FOR i=1 TO ALEN(lafieldlist,1)
> This.addcolumn(This.columncount+1) && Add column to the end
> lcCaption=Proper(SUBSTR(lafieldlist[i],AT(".",lafieldlist[i])+1))
> if left(lcCaption,3)="Adc"
> lcCaption="ADC"+Proper(substr(lcCaption,4))
>*!* This.columns(i).AddObject('chkADC','checkbox') && Add checkbox
>*!* This.columns(i).chkADC.Caption=""
>*!* This.columns(i).chkADC.Visible=.T.
>*!* This.columns(i).CurrentControl="chkADC"
> endif
>
> This.columns(i).header1.caption = lcCaption && Add header
> lnWidth=fsize(lcCaption)
> lnWidth=iif(lnWidth>30,lnWidth-20,lnWidth)
> This.columns(i).width= MAX(lnWidth,len(lcCaption) ) * THIS.FONTSIZE
> This.columns(i).controlsource = lafieldlist[i] && Assign controlsource
>ENDFOR
>
> First of all, I display Memo field "Notes", but I can not see it's content - dblClick, Ctrl+Home - nothing works. How can I solve this problem?
>
You may want to use an edit box for the memo...
> Second, I have 3 logical fields - I want to show Yes/No instead of T or F and I want these fields are editable.
Is there a reason you can't use a char field instead? Or if you used a view, you could display a char with an added view field, and then update the logical in cell code, maybe...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.