Hi guys
i have a form that has a grid(grid1) and a command button to Reset the content of the grid, the problem is when i click on the reset button, the grid is shown but it just the frame of the grid, it does not show the grid lines, it will only show the grid lines again after a pass values to it using the 'Thisform.txtTextBox.Value' which is inserted into cursor 'jobnos' then later displayed in Grid1
but when i want to clear the grid1, i use the below code to reset it.
Is there anyway to refresh the Grid and show it with the grid lines again ? Thanks a lot, by the way if visible=.T. it shows only the frame.
SELECT jobnos
USE
CREATE CURSOR jobnos (job_no C(6))
WITH Thisform.grid1
.Visible = .f.
.refresh
ENDWITH
Thisform.txtTextBox.Value=''
thisform.txtTextBox.SetFocus()
thisform.Command4.Enabled=.f.
Thisform.Refresh()
i have a form that has a grid(grid1) and a command button to Reset the content of the grid, the problem is when i click on the reset button, the grid is shown but it just the frame of the grid, it does not show the grid lines, it will only show the grid lines again after a pass values to it using the 'Thisform.txtTextBox.Value' which is inserted into cursor 'jobnos' then later displayed in Grid1
but when i want to clear the grid1, i use the below code to reset it.
Is there anyway to refresh the Grid and show it with the grid lines again ? Thanks a lot, by the way if visible=.T. it shows only the frame.
SELECT jobnos
USE
CREATE CURSOR jobnos (job_no C(6))
WITH Thisform.grid1
.Visible = .f.
.refresh
ENDWITH
Thisform.txtTextBox.Value=''
thisform.txtTextBox.SetFocus()
thisform.Command4.Enabled=.f.
Thisform.Refresh()