Jump to content


DiGi

Member Since 31 May 2007
Offline Last Active Jul 15 2024 12:01 PM
-----

Posts I've Made

In Topic: Bug: NxCellClasses

20 May 2009 - 04:46 PM

It it simple to "cut" time part just by using FormatMask in TNxDateColumn.

Cell is "TDateTimeCell" so it should handle time part too. It it possible to insert Time part using AsFloat (for now ;-)), but I'm not sure that it is correct.

New property AsDate with Trunc is in my opinion better than modify old and correct behavior.

In Topic: Bug: NxCellClasses

20 May 2009 - 04:31 PM

Oh, i missed that... Simple DateTime column can be fine, just with this one modification. Using two columns as date AND time is now waste of space...

Date column works fine until this update.

In Topic: Bug: NxCellClasses

20 May 2009 - 02:44 PM

I'm not sure - Diff from SubVersion server:

Revision 5592: Update to NextSuite v4.5.09.1
Revision 5591: NextGrid Suite v4.7.8.1


Index: NxCellClasses.pas
===================================================================
--- NxCellClasses.pas (revision 5591)
+++ NxCellClasses.pas (revision 5592)
@@ -217,7 +217,7 @@

function TDateTimeCell.GetAsInteger: Integer;
begin
- Result := Round(FValue);
+ Result := Trunc(FValue);
end;

function TDateTimeCell.GetAsString: WideString;
@@ -233,7 +233,7 @@

procedure TDateTimeCell.SetAsDateTime(const Value: TDateTime);
begin
- FValue := Value;
+ FValue := Trunc(Value);
inherited;
end;

In Topic: NextDbGrid goes crazy

14 September 2008 - 08:59 PM

Please upload pachh here or send directly to Boki. Thanks smile.gif

In Topic: NextDbGrid goes crazy

05 September 2008 - 06:18 PM

Uhm... Currently scrollbars in Delphi's DBGrid are working much better than these in NextGrid...

I think that there are some missing points with updating/changing RowNo, CurrentRow etc.