in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Redefine some methods

Last post 02-08-2008 6:58 AM by C1_AndreyD. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-08-2008 1:28 AM

    Redefine some methods

    Hi.

    I have SQL database. I fetch some rows from it. One of the columns in this database - file extension. But I dont need to write extension in my C1TrueDBGrid. Instead this I need to show icon of this file extension. May I redefine some methods of the C1DataSet or something else to customize fill algoritm?

  • 02-08-2008 6:58 AM In reply to

    Re: Redefine some methods

    Hi,

    You don't have to redefine any methods. Use the value translation feature
    of the C1TrueDBGrid. Open truedbgrid's designer, select the file extension
    column, then click the "..." button after the ValueItems property. Here you
    should check the Translate checkbox, then fill out the ValueItems collection.
    See the attached sample application.

    Regards,

    -Andrey
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.