Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Allow typing in MSHFlexGrid
Message
From
11/11/2002 06:18:51
 
 
To
11/11/2002 04:48:31
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00720906
Message ID:
00720912
Views:
21
MSFlexGrid and MSHFlexGrid controls are both read-only. So you can use TextBox in the following way:
1. Put TextBox over the grid. Move and resize TextBox to position them exactly over cell of the grid, so user will not see that is separate textbox: it will think that is textbox from the grid.
2. When you must get or write data from/to TextBox, use this row and field from the recordset, which corresponds to the cell, over which is TextBox.
3. When user moves from one cell to another (by the mouse or keyboard arrows), move TextBox over new cell and fill them with data from appropriate record and field.

In this way you can put also ComboBox over the grid and give user ability to select from the combobox. In this case you must maintain separate recordset behind combobox and repopulate them on every move over different cell with appropriate choices for that cell.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform