Autor Beitrag
Josef-B
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: Mi 08.03.06 07:57 
Hallo,

ich teste gerade das Quantumgrid im Zusammenhang mit Firebird. Wenn bei einer Spalte im Grid der Typ Boolean eingestellt, zeigt das Grid dafür dann automatisch eine checkbox an.

Jetzt hat aber ja Firebird keinen Typ boolean.

Hat da jemand eine Idee wie ich dann die Checkbox im Quantumgrid hinbekomme?
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 08.03.06 07:59 
Bei der CheckBox kannst Du noch angeben, welcher Wert (Variant) als 'Checked','Unchecked' oder 'Gray Checked' interpretiert werden soll. z.B. 1,0 und (NULL).

_________________
Na denn, dann. Bis dann, denn.
Josef-B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: Mi 08.03.06 08:07 
Danke für die schnelle Antwort !!

beim TableView habe ich im Objectinspektor bei der Column unter Databinding.valuetype "String" stehen. Was anderes kann ich da auch
bei der Spalte gar nicht einstellen. Oder kann man die Checkbox manuell zufügen?
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 08.03.06 08:18 
Ach so: In der 'Properties' erst 'Checkbox' auswählen. Der 'ValueType' wird vom Grid anhand des Feldtypen ermittelt, da würde ich nicht rumfummeln.

Ohne weiteres Zutun erzeugt das Grid nur die Spalten mit einer Basisfunktionalität. Wenn du für bestimmte Spalten bessere Editoren möchstest (z.B. ein für eine komfortablere Datumseingabe), definierst Du diesen 'inplace editor' über die Eigenschaft 'Properties'.
Anschließend kannst Du spezifische, nur für diesen Editor geltende Eigenschaften angeben. Tolle Sache.

So kannst Du einem Integer-Feld ein spezielles MaskEdit verpassen, das z.B. die Zahl in der Form '000-000' anzeigt und eingeben lässt. Oder eben einem Checkbox-Feld sagen, das es sich nicht auf boolsche Werte, sondern auf Strings ('Wahr','Falsch') oder Zahlen (-1,0) beziehen soll.

_________________
Na denn, dann. Bis dann, denn.
Josef-B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: Mi 08.03.06 08:27 
ja das wars, vielen dank.

Kennst Du dich zufällig auch mit dem Masterview von DEVEXPRESS aus?
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 08.03.06 08:27 
user profile iconJosef-B hat folgendes geschrieben:
Kennst Du dich zufällig auch mit dem Masterview von DEVEXPRESS aus?

Nee, denn das kann das TcxGrid genauso gut, oder?

_________________
Na denn, dann. Bis dann, denn.
Josef-B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: Mi 08.03.06 15:04 
Ja stimmt,

bei dem Masterview hast du immer noch mal nach dem Aufklappen über jedem aufgeklappten Mastersatz die Spaltenbezeichnungen stehen. Ist dann etwas übersichtlicher finde ich.

Allerdings ist das Masterview readonly.