Paul McNary wrote:
> Paul McNett wrote:
>> Paul McNary wrote:
>>> Hello
>>>
>>> Is there a way to setFocus to a specific Grid Column?
>> grd.CurrentColumn = <column index>
>>
>> Paul
>>
>>
> 
> Thanks Paul, I had a brain fart because I have used CurrentColumn before.
> 
> HOWEVER, in this case
> 
> I have the following code:
> 
> 
> ---------------------------------------------------------------------------
> def onGridCellSelected(self, evt):
>       print "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
>       print evt
>       print evt.col
>       if evt.col < 2:
>               print "***********************************************"
>               self.CurrentColumn = 2
>               self.refresh()
> ---------------------------------------------------------------------------
> I am wanting to skip grid columns 0 and 1 while doing entry.
> I mouse click or tab on column 0 or 1 cell
> 
> The above code fires:
> The line of x's print
> The evt.col prints
> the *'s print
> but when done, I am still in the cell I started with.

Try changing that to:

self.setAfter(self.CurrentColumn,2)

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to