Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Data bound grid in v 1.02 Build 2
Thu, Oct 17 2013 1:30 AMPermanent Link

KZ

Mostly working OK for me. Have the following questions:

1) Why doesn't Ctrl-C, or Ctrl-V work to copy/paste text when editing a column with a ctEdit controlType?  Rightclicking and selecting copy or paste also doesn't work... though delete does.

2) For a column with ctcheckbox as the control type why do you have to doubleclick to toggle the selection? I got around this by doing the following on the OnClick of the grid:

if MyGrid.ColumnIndex=5 then begin  
  if Database.InTransaction then begin
     MyTable.Update;
     if MyTable.Columns['DoDelete'].AsInteger=0 then
        MyTable.Columns['DoDelete'].AsInteger:=1
     else
        MyTable.Columns['DoDelete'].AsInteger:=0;
     MyTable.save;
  end;
end;
Thu, Oct 17 2013 5:58 AMPermanent Link

Walter Matte

Tactical Business Corporation

KZ thanks... I had noticed this but had not got to looking into it.  ...  I just used your solution....

Walter
Thu, Oct 24 2013 4:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< 1) Why doesn't Ctrl-C, or Ctrl-V work to copy/paste text when editing a
column with a ctEdit controlType?  Rightclicking and selecting copy or paste
also doesn't work... though delete does. >>

I'll have to look into this - it is probably just the way that the grid is
overriding the edit control's keystrokes.

<<2) For a column with ctcheckbox as the control type why do you have to
doubleclick to toggle the selection? >>

That's just the way that it is designed.  I'll have to consider the
ramifications of changing it to a single click, but it should be possible.

Tim Young
Elevate Software
www.elevatesoft.com
Image