[DUG]: TwwdbGrid

2001-08-14 Thread John Christenhusz
Hi folks, I want to change the text in a TwwdbGrid for a particular item. The following code doesn't work: procedure TformREDB.dbgridSearchCalcCellColors(Sender: TObject; Field: TField; State: TGridDrawState; Highlight: Boolean; AFont: TFont; ABrush: TBrush); begin if (field.name

RE: [DUG]: TwwdbGrid

2001-08-14 Thread James Sugrue
Title: RE: [DUG]: TwwdbGrid I think the problem is (I could be wrong here) that by changing then Field.Text you are actually attempting to change the underlying datasets field data, which is, by the looks of it, a float or currency field. From what I can tell you want to put a '+' sign

Re: [DUG]: TwwdbGrid

2001-08-14 Thread Nello Sestini
recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 5:09 AM Subject: [DUG]: TwwdbGrid Hi folks, I want to change the text in a TwwdbGrid for a particular item. The following code doesn't work: procedure TformREDB.dbgridSearchCalcCellColors(Sender: TObject; Field: TField

RE: [DUG]: TwwdbGrid

2001-08-14 Thread John Christenhusz
Title: RE: [DUG]: TwwdbGrid Thanks James for the code, this works great! As you wrote, using the OnDrawDataCell Event is apparently obsolete! What's the alternative? TIA John -Original Message- I think the problem is (I could be wrong here) that by changing then Field.Text

RE: [DUG]: TwwdbGrid

2001-08-14 Thread James Sugrue
recipients of list delphiSubject: RE: [DUG]: TwwdbGrid Thanks James for the code, this works great! As you wrote, using the OnDrawDataCell Event is apparently obsolete! What's the alternative? TIA John -Original Message- I think the problem is (I could

[DUG]: TwwDBGrid

2000-05-18 Thread John Christenhusz
Hi all, Is there any way of enlarging the size of a grid in a TwwDBGrid. This to allow multiple lines for a 100 character field cell. I can do this at design-time or at run time, but when the associated table is closed and opened again, the cell size is back to a single line and 100 characters

Re: [DUG]: TwwDBGrid

2000-05-18 Thread Rohit Gupta
Try unticking the "use Tfields for storage". -Original Message- From: John Christenhusz [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Friday, 19 May 2000 06:02 Subject: [DUG]: TwwDBGrid Hi all, Is there any way of enlarging the size

Re: [DUG]: TwwDBGrid

2000-05-18 Thread Rohit Gupta
PROTECTED] From: "John Christenhusz" [EMAIL PROTECTED] Subject: [DUG]: TwwDBGrid Date sent: Thu, 18 May 2000 21:41:19 +1200 Hi all, Is there any way of enlarging the size of a grid in a TwwDBGrid. This to allow multiple lines for a 100