|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Adding Data to FlexGrid?
Hi,
Im pretty new at vb, and Im facing a problem when Im trying to add item to a flexgrid. Iv hooked it up to a Database, with the table called "main" , with various fields. It manages to display the data from the database perfectly, yet when I go to add data using the AddItem command, it dont work. This is what Im trying: (main is the name of the Flexgrid Control): Private Sub Command1_Click() grdmain.Col = 2 grdmain.Row = 2 grdmain.AddItem = test test = InputBox("TESTING!") End Sub To begin with, an input box DOES NOT appear? However, I discovered that if I remove the GRD, so that the code looks like this: Private Sub Command1_Click() main.Col = 2 main.Row = 2 main.AddItem = test test = InputBox("TESTING!") End Sub an input box DOES APPEAR, but the data is not added onto the FlexGrid - or rather, perhaps its added and does not show? (Iv tried opening the database to check, but it isnt added). Any help highly appreciated. Thanks. |
|
#2
|
|||
|
|||
|
Private Sub Command1_Click()
try test = InputBox("TESTING!") grdmain.Col = 2 grdmain.Row = 2 grdmain.AddItem = test End Sub assignment got mixed up |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Adding Data to FlexGrid? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|