Can I edit the label text of "Checkbox" style in grid ?

Started by khann, October 07, 2013, 01:16:26 AM

Previous topic - Next topic

khann

Hi,
I'm trying to edit the label text of "Checkbox" style in grid.
I could not get the proper solution.
Is it possible?

owenwengerd


khann

Hi, Owen.
As you know, this is MasterDemo's grid sample.
I want to know how to change the text "Check Boxes" itself of "CheckBox Style" in grid at runtime.
Thanks. :)



owenwengerd


khann

Thanks, Owen for your reply.
But it's not what I thought.
I need "CheckBox" style to get the user checked the cell or not
and need to edit the label text of the cell as "String" or "Integer" style.

owenwengerd

Sorry, I don't understand the problem. What exactly is the issue with Grid_SetCellText with a Checkbox cell style?

khann

It's okey.
Yes, I want the "CheckBox" style can edit label text when clicked the cell just like "String" style.
:-[

owenwengerd

Ah, I see now. For that, perhaps you can leave the checkbox and accompanying text in two separate columns.

khann

Thanks, Owen.
That may be one solution.
not to use two columns, I consider the combination of changing between "Checkbox" and "String" style with MouseUp or BeginLabelEdit Event.
But I'm not sure it works as I wish.  ::)

Fred Tomke

Hi, khann, I would like to encourage you to have a try. Just keep in mind that a cell can only have a single style: either text input or checkbox; either text input or button and so on. That's why I also used multiple colums for different input types of each row.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

khann

Thank you very much. Fred.
:)
Still I'm trying, not only this and there rises some other ideas to get my goal.
I think post the sample, if succeed.
Your reply is my great energizer. ;)