View Issue Details

IDProjectCategoryView StatusLast Update
0003329JEDI VCL03 Donationspublic2006-11-21 04:09
ReporterultimoAssigned ToInformatix 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version 
Summary0003329: JvDBGrid: Added possibility to color column on order
DescriptionI make the possibility to color column on ascending and descending order, also new event to trap order.
I make a new class but if is good you can merge on good code.
Additional Information(Sorry for my english)
TagsNo tags attached.

Activities

2005-11-28 08:11

 

jvDBGridMax.pas (5,062 bytes)

Informatix

2006-06-30 07:29

developer   ~0009736

This can be achieved very simply with the OnGetCellParams event and a bit of code.
An example in C++ with JvDBUltimGrid:
  if (MyDBGrid->SortedFields.Length > 0)
  {
    for (int SF=0; SF < MyDBGrid->SortedFields.Length; SF++)
      if (AnsiSameText(Field->FieldName, MyDBGrid->SortedFields[SF].Name))
      {
        if (MyDBGrid->SortedFields[SF].Order == JvGridSort_UP)
          Background = mycolor1; // "up" color
        else if (MyDBGrid->SortedFields[SF].Order == JvGridSort_DOWN)
          Background = mycolor2; // "down" color
        break;
      }
  }

And if you want to trap the click on the title bar, use OnTitleBtnClick.

Fred

ultimo

2006-11-03 08:28

reporter   ~0010411

I'm asking for JvDBGrid and not for JvDBUltimGrid.

Informatix

2006-11-03 09:34

developer   ~0010413

JvDBUltimGrid = JvDBGrid + sort and search functions. Your question is related to sorting, so JvDBUltimGrid seems to be the right component to use.
The sorting procedure (DoTitleClick) in JvDBGrid is broken and should be removed. There are many bugs inside. The idea behind is wrong and works only in a few situations (not uncommon, but a program is supposed to work 100% of the time, not just with favourable situations). So, use it at your own risk.

Fred

ultimo

2006-11-08 03:52

reporter   ~0010421

Ok, thanks.
You can change status to resolved.

Issue History

Date Modified Username Field Change
2005-11-28 08:11 ultimo New Issue
2005-11-28 08:11 ultimo File Added: jvDBGridMax.pas
2006-01-05 08:09 obones Summary Added possibility to color column on order => JvDBGrid: Added possibility to color column on order
2006-04-04 06:10 obones Status new => assigned
2006-04-04 06:10 obones Assigned To => Informatix
2006-06-30 07:29 Informatix Note Added: 0009736
2006-10-12 06:56 Informatix Status assigned => feedback
2006-11-03 08:28 ultimo Note Added: 0010411
2006-11-03 09:34 Informatix Note Added: 0010413
2006-11-08 03:52 ultimo Note Added: 0010421
2006-11-21 04:09 Informatix Status feedback => resolved
2006-11-21 04:09 Informatix Resolution open => fixed