My problem is that B and C do not show the update until after I click off of combobox A. I want B and C to update as soon as I make the selection on A. How do I do this?
Thanks,
Trey
Expand|Select|Wrap|Line Numbers
- Private Sub DataGridView1_CellValueChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged
- If Me.Visible = True Then
- Dim ColumnIndex
- ColumnIndex = DataGridView1.CurrentCell.ColumnIndex
- If ColumnIndex = 2 Then
- IndexValue = DataGridView1.CurrentRow.Cells(2).Value
- DataGridView1.CurrentRow.Cells(3).Value = IndexValue
- DataGridView1.CurrentRow.Cells(4).Value = IndexValue
- End If
- If ColumnIndex = 3 Then
- IndexValue = DataGridView1.CurrentRow.Cells(3).Value
- DataGridView1.CurrentRow.Cells(2).Value = IndexValue
- DataGridView1.CurrentRow.Cells(4).Value = IndexValue
- End If
- If ColumnIndex = 4 Then
- IndexValue = DataGridView1.CurrentRow.Cells(4).Value
- DataGridView1.CurrentRow.Cells(2).Value = IndexValue
- DataGridView1.CurrentRow.Cells(3).Value = IndexValue
- End If
- Else
- Exit Sub
- End If