procedure TfrmSetup.tsGridAlarmCellEdit(Sender: TObject; DataCol,
DataRow: Integer; ByUser: Boolean);
var
i: integer;
s1,s2:string;
begin
for i := 1 to tsGridAlarm.Rows do
begin
if (tsGridAlarm.Cell[1,i] = tsGridAlarm.Cell[1,DataRow]) and
(length(tsGridAlarm.Cell[1,i]) > 0 ) and (i <> DataRow) then
begin
MessageDlg('Cannot have multiple events on the same date.', mtInformation,[mbOK],0);
s1 := tsGridAlarm.Cell[1,DataRow]; <<<=== contains 1/19/2006
tsGridAlarm.Cell[1,DataRow] := '';
tsGridAlarm.DeleteRows(DataRow,DataRow);
//or tsGridAlarm.RowSelected[DataRow] := true;
// tsGridAlarm.DeleteSelectedRows;
tsGridAlarm.RefreshData(roBoth,rpNone);
s2 := tsGridAlarm.Cell[1,DataRow]; <<<=== blank (but the cell displays the date)
end;
end;
tsGridAlarm.Rows := 20;
end;
This works:
procedure TfrmSetup.btnAlarmDeleteClick(Sender: TObject);
begin
tsGridAlarm.DeleteSelectedRows;
end;
Thanks Paul -
I have the question in to them also. I've had reasonable support in the past. I hope your
experience is a fluke. I really like the grid, but if support falls out, I dunno what I'll
do. Its a weird problem. Guess we're the only 2 users? <g>
MikeR
I'm using TopGrid 3.01 under D2006 Win32 with no problems. The
convertion was fairly easy, took about 15 minutes
Well, I believe the D2006 support, if/when they ever release it, will
be free. So its not like you're going to be out any money that you
ain't already spent.
How did you do that? I find one source module missing, grids_ts.pas. I
assumed it was an oversight, they didn't intentionally leave it out of
the distribution, but, I don't find it. And therefore I can't build
it into 2006. I sent an e-mail to ObjectSight about the missing file,
and didn't get an answer.
Which build of 3.01 did you start with? The current release is
3.01.08. I looked at the D7 and D2005 builds of 3.01.08, and didn't
find grids_ts.pas in either.
Hi Wanye
I would be really interested how you did this. I want to upgrade from
C++Builder 6 to BDS2006 and the only thing holding me back is Topgrid.
Like others in this thread I have tried emailing ObjectSight with now
respose. If it is possible to use version 3.01 (or even 2.2) in
BDS2006, I would be very happy.
Thanks
Gaz
The use the grids_ts.pas from the older version mine is dated
10/29/2002, you'll have to use it even to rebuild the D7 libs
post a valid email address and I'll email you the changes you need to
build the libraries for D7 and D2006
Well, in that case, I suppose you might also try considering upgrading
it to D2006 yourself. I notice that version 2.20 did come with the
grid_ts.pas file which I find missing for 3.01.
When you mean older version, do you mean from version 2.20, or do you
mean like 3.01.07 or so?
>post a valid email address and I'll email you the changes you need to
paul_doland
nospam me
at
do not spam
yahoo
no spam for me
dot
spamer go away
com
--
Thomas Miller
Chrome Portal Project Manager
Wash DC Delphi SIG Chairperson
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://www.cpcug.org/user/delphi/index.html
http://sourceforge.net/projects/chromeportal/
http://sourceforge.net/projects/uopl/
http://sourceforge.net/projects/dbexpressplus
Yes it was what? Left out of the distribution intentionally? They
distributed it with TopGrid 2.20.
> There are instruction
>on how to create it from the Borland code.
Where?
<time passes>
Ah, it is in the help file. I at first look through the readme and
that kind of stuff.
Thanks for the help, though you could have been slightly less
cryptic...
Well, its stranger and stranger.
TopGrid 3.01 seems to NOT include grids_ts.exe, the program to create
grids_ts.pas. I did find it with TopGrid 2.20. But, I also find the
grids_ts.pas with 2.20. So, with version 2.20, they gave you the .pas
file even though they shouldn't have, and the .exe file to create it
even though you don't need to create it since they gave you the .pas
file anyway. But in 3.01, they neither give you the .pas file, nor
the exe to create it. Very strange.
I hope/assume that whatever modifications they make to Borland's
grids.pas is the same for both TopGrid 2.20 and 3.01. I guess I have
no other choice until they release the real version.
Also, looking at the grids.pas file from Borland, there are a few
changes between the D2005 version and the D2006 version. I'm not sure
if I should attempt to migrate those changes to the grids_ts.pas file
or not. I made the guess to not do so.
Now, what you came up with for the grids_ts,pas, well, I can't even
figure out what you used for the base. It has as the Borland
copyright as 95 - 98. But, the grids.pas from Borland from D7 is
copyright 1999-2001. But, I also noticed that grids_ts.exe, when it
mangles the file to create grids_ts.pas, it also inexplicably mangles
the date. For example, when I run the copy of grids_ts.exe on the D7
copy of grids.pas, it changes the copyright date from "1999-2002" to
"1995-2001". Don't have a clue why it would do that. But, I also
have no clue where your version that says 95 -98 comes from either.
Bottom line is, I have decided to use my own conversion. I only had
to add a single reference to a uses statement. I haven't really
tested it well yet, but, I think it is probably okay.
The only thing I am moderately concerned about is, building the
grids_ts.pas okay. It seems to be okay, but I'm not certain. The
only grids_ts.exe that I have come from TopGrid 2.20. It isn't in the
3.01.08 build. Was it by any chance in the .07 build?
It was my understand than 3.01.08 added nothing but D2005 Compatibility,
so, I never bothered installing it
Don't know where you got that idea, as the announcement of 3.01.08
came with a list of bug fixes. In the readme for 3.01.08, here are
the list of fixes for it:
TopGrid v3.01.08 release notes July 23, 2005
1. MergeCells and DisplayFormat - When TextFormatting is tfGrid and
MergeCells is True then DisplayFormat is not assigned to the cells.
2. TtsGrid with RowBarDisplay set to rbdDisplayRow does not refresh
properly when scrolling using keyboard arrows (multiple rows with same
value).
3. Sorting on double fields not considering decimal portion properly
in sort algorithm
4. Calculation of TotalBand (when visible) is going off twice instead
of just the one time that is necessary
5. AdvGrid Exception on Arrow Key down at end of Data - In the Ver
3.07 AdvGrid Delphi 6 with StoreData true. If a user Scrolls down
using the arrow keys to the last row + 1 an exception at 0000000000
happens if I add a key down event and a key up event I can track it to
the Key down then before the key up event the exception happens. this
was not true with Ver 3.06
6. Fields for closed datasets do not appear when creating combos.
7. Combo Wizard adjustments to disable and clear datasource dropdown
when not selected on first page
8. & Accelerator is being interpreted by new DrawText window calll to
interpret as underscore next character.
9. LoadFromFile grid method is not configuring databound combos
properly - No data appears in the column (if AutoLookup true) and no
data appears in the dropdown.
10. Hitting escape to undo the start of a new row was positioning
cursor on first row - Instead of positioning on the last row of the
grid.
11. TosAdvDbGrid with GridMode gmEditInsert with inactive dataset
improperly displayed eidtor - The Insert Row will now appear read-only
if the dataset is inactive.
12. GridMode = gmEdit with AlwaysShowEditor and arrowing down on the
last row to create a new row is defaulting the edited value in the
editor to the value of the row above.
13. Grouping and DisplayCol - TopGrid is not function properly when we
apply grouping on a databound grid with a column moved to a new
position.
14. Date editing in unbound grid seems to not accept date input
properly.
15. Cannot up arrow past the group header when RowNavigation is rnAll
and databound. When up arrow key to header row occurs - AdvDbGrid gets
an interrupt from the dataset to select the row in the grid for the
current dataset row. This then re-positions the row off the header
back to the first data record within the group.
16. Terms Combo on Independent Scrolling demo not displaying results
in dropdown. Defect fixed in TopGrid where FieldLayout boolean was
inadvertently set to True.
By the way, on the ObjectSight site, the registered users download
page, there is also a bug tracking section. And in the bug tracking
section, they say they expect to release D2006 support for 3.01 *and*
2.20 on January 16. Obviously, they missed that target date, but, my
point is, they at least claimed they were going to do 2.20 support for
D2006.
By the way, I don't believe you've yet said where you got your
grids_ts.pas from. Did 3.01.07 come with grids_ts.pas and/or
grids_ts.exe?
Okay, my mistake.