Hi, Boki:
Trying to move the following code to its equivalent event:
currently this is in the NextGrid5.OnEditText.
I am thinking it now belongs in the NextGrid6.Column.OnGetText.
WITH GridView1 DO
BEGIN
// if first column of ad hoc row exceeds 512 cc max, then do something
IF (ACol = 0) AND (Pos('TR', string(Cell[Columns.Count - 1, ARow].AsString))
> 0) AND (Length(Value) > 512) THEN
BEGIN
// 5/23/09
DoFPShowMessage('Cell Text exceeded max 512 characters.' + CR +
'Text truncated.', 3000);
Value := Copy(Value, 1, 512);
END;
END;
Could you please confirm this is the correct event to put this code? This would apply to Tree and Text Columns.
Thank you,
Chuck Belanger