Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
610
Changing row appearance in SelectionDrag event
posted

I want to override the default selection and active row appearance while doing drag and drop.

I tried this:

  With Grid.DisplayLayout.Override
    .ActiveRowAppearance.BackColor = Color.PaleGoldenrod
    .SelectedRowAppearance.BackColor = Color.PaleGoldenrod
  End With

And then added this:

  Grid.Rows.Refresh(RefreshRow.RefreshDisplay)

This is all before calling Grid.DoDragDrop(...)