-
Dec 18th, 2003, 11:00 PM
#1
Thread Starter
Lively Member
option button in msflexgrid
Does anyone know how I can add an Option button to each row in an MSFlexgrid? It can be added in the first or last column, doesn't matter.
preciate it!!!
"never trouble trouble til trouble troubles you"
-
Dec 19th, 2003, 01:34 AM
#2
Well ...
I think you would need to use the same trick that's used with putting textboxes in the FlexGrid. Of course if you want all the option buttons to be visible all the time, it's a big problem.
A crude solution would be using a control array of option buttons and locating them on top of the desired cells, by using the Left and Right coordinates of the desired cells. You could also implement a control array that only has as many elements as the visible rows of the grid, and then transfer values back and forth from the grid to the option buttons.
Alternatively, you could use a third-party grid control that would allow a column type to change from textbox to checkbox or radio button or anything else.
.
-
Dec 19th, 2003, 06:20 AM
#3
Hyperactive Member
Use images...
Take two images one with radio button checked and other one unchecked and by default put the unchecked image in all the cells using cellpicture property. and in onclick event change the image to checked one for the current cell and rest all to unchecked.
This works very fine.....i hope u understood the logic
-
Dec 19th, 2003, 08:47 AM
#4
Thread Starter
Lively Member
I understand your logic completely, but I am a little cloudy on what the code would look like!!
How does the .container property work?
"never trouble trouble til trouble troubles you"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|