|
-
Aug 14th, 2000, 01:58 PM
#1
Thread Starter
Member
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
-
Aug 14th, 2000, 05:50 PM
#2
Hyperactive Member
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!
Ulises Vázquez
[size=1.7]Oracle DBA Certified Professioanl
Visual Basic 6 Developer
Crystal Reports Designer
[/size]
-
Aug 15th, 2000, 02:21 PM
#3
Lively Member
Use the DBGrid control. It allows a user to modify cell contents at run-time.
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
|