× General Purpose Components and Libraries, discussions, problems and suggestions

Idea TStringGrid Question

  • Curt
  • Curt's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #1887 by Curt
TStringGrid Question was created by Curt
I am using a TStringGrid in an application and I am using 4 columns of the grid as checkboxes.

This is the first time I have used this custom feature and I have a question.

The grid is loaded from an external file. the checkbox columns all indicate their correct
state after the file is loaded. (checked or unchecked)

However some, not all cells in all 4 columns are greyed out. Others are not.
How is this done or how can I make it so all the checkboxes are correct but not greyed out?

I felt that asking here would result in a well reasoned and accurate response even though this
is not in any way a CodeTyphon problem. Seems like Lazarus to me.

Thanks,

Curt

Addendum: If I set the grid for editing I can check and uncheck all of the checkbox cells and
changing the state of the greyed cells ungreys them. I just do not understand.....
Last edit: 10 years 3 months ago by Curt. Reason: Added info

Please Log in or Create an account to join the conversation.

  • Curt
  • Curt's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago #1903 by Curt
Replied by Curt on topic Re: TStringGrid Question
Found it. Bad or incorrect data in file. Was looking for 1 or 0 greyed out
display was for empty or no data present.

C.

Please Log in or Create an account to join the conversation.