Click to See Complete Forum and Search --> : MS Flex Grid control
Srinimusuku
Aug 14th, 2000, 01:58 PM
Hi There,
Can i know how to edit the cells in the MS Flex grid control in Visual Basic.
It seems the MSflex grid control does not allow to update the cells with in the grid.
Please reply soon.
Thanks
Srini
Tonatiuh
Aug 14th, 2000, 05:50 PM
I'm afraid you can not edit the FlexiGrid cells directly. But, you can use a TextBox. If you put the TextBox exactly over the FlexiGrid cell and set to Left, Top and Width properties of this as it hasthe same size and position of the cell, it seems like the celll in editing mode.
Use something as it follows:
Text1.Top = FlexiGrid1.CellTop
Text1.Left = FlexiGrid1.CellLeft
Text1.Width = FlexiGrid1.CellWidth
In the Change property of the TextBox (for example) you can put the following:
FlexiGrid1.Text = Text1.Text
You must take care of more aspects of this, but this is the most important. When you ends the editing you should turn FALSE the visible property of hte TextBox.
Good Look!
ttingen
Aug 15th, 2000, 02:21 PM
Use the DBGrid control. It allows a user to modify cell contents at run-time.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.