I figured it out...but ran into another problem...here's the code:
Private Sub RepaintComboBox()
Dim dg As Rectangle = dgServerList.GetCurrentCellBounds
Dim cb As Rectangle =
Me.RectangleToClient(dgServerList.RectangleToScree n(dg))
cboMailList.SetBounds(cb.X, cb.Y, cb.Width, cb.Height)
cboMailList.Show()
cboMailList.BringToFront()
End Sub
I added a call to this Sub in the DataGrid_Scroll event. But now when
the row that the combobox is in scrolls out of view, the ComboBox
continues to be painted over the rest of the form as if the row was
still visible. I can't seem to find a way to tell if a row in a
datagrid is visible or not. Can anyone help with this? Thanks!
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!