Help with Datagrid and boolean column 
Author Message
 Help with Datagrid and boolean column

I have a boolen col in my database (mdb) and I wish to change a value
from true to false with a double click.
Col4 is the boolean and the row will be selected by user.
The routine below is a disaster,  any thoughts.

Private Sub grdDataGrid_Click()
    Dim rownow As Integer
    rownow = grdDataGrid.Row

If grdDataGrid.Col = 4 Then
         If grdDataGrid.Text = "NotYet" Then
            'grdDataGrid.Row = rownow
            Debug.Print "inside if NOTYET loop-"; "row ";
grdDataGrid.Row
            grdDataGrid.Text = "Yes"
        ElseIf grdDataGrid.Text = "Yes" Then
            Debug.Print "elseif loop-"; "row "; grdDataGrid.Row
            grdDataGrid.Text = "NotYet"
        End If
End If
'grdDataGrid.Refresh
End Sub
NOTE......Correct email BELOW

*************************************
*Note: replace damorsoft with kbrock*
*************************************



Thu, 26 Sep 2002 03:00:00 GMT  
 Help with Datagrid and boolean column
I have a boolen col in my database (mdb) and I wish to change a value
from true to false with a double click.
Col4 is the boolean and the row will be selected by user.
The routine below is a disaster,  any thoughts.

Private Sub grdDataGrid_Click()
    Dim rownow As Integer
    rownow = grdDataGrid.Row

If grdDataGrid.Col = 4 Then
         If grdDataGrid.Text = "NotYet" Then
            'grdDataGrid.Row = rownow
            Debug.Print "inside if NOTYET loop-"; "row ";
grdDataGrid.Row
            grdDataGrid.Text = "Yes"
        ElseIf grdDataGrid.Text = "Yes" Then
            Debug.Print "elseif loop-"; "row "; grdDataGrid.Row
            grdDataGrid.Text = "NotYet"
        End If
End If
'grdDataGrid.Refresh
End Sub
NOTE......Correct email BELOW

*************************************
*Note: replace damorsoft with kbrock*
*************************************



Sun, 29 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Boolean column in Datagrid

2. Datagrid Boolean Column

3. Formatting Datagrid Column for Boolean Values

4. Boolean value in DataGrid column, checkbox?

5. DataGrid: Displaying boolean columns as checkboxes or strings

6. Boolean value in DataGrid column, checkbox?

7. DataGrid: Displaying boolean columns as checkboxes or strings

8. Boolean value in DataGrid column, checkbox?

9. DataGrid: Displaying boolean columns as checkboxes or strings

10. Need some help with DataGrids (DataGrid-->DataGrid, DataGrid-->Dataset, DataGrid-->XML)

11. How to align column header differently from column in windows datagrid

12. Datagrid column reject input when added expression for parent columns

 

 
Powered by phpBB® Forum Software