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
260
Unable to enter values in cell
posted

We're having an issue which wasn't present in an older version we're using v 10.2.20102.1004. When I try to enter values in one of the cells that normally would except values it no longer does. There are no other events making changes to the grid or any of the cells. After reading several post on this issue here's what I came up with:

 

    Private Sub grdDetail_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles grdDetail.KeyDown

        Me.grdDetail.ActiveRow.Cells("tmpAmount").IgnoreRowColActivation = True

        Me.grdDetail.ActiveRow.Cells("tmpAmount").Activate()

        Me.grdDetail.DisplayLayout.Bands(0).Columns("tmpAmount").CellActivation = Activation.AllowEdit

    End Sub

Now this worked fine until the grid was populated with another dataset, the only way the cell then became editable was if I click on another cell and then back to the cell I wanted to edit. I can provide what ever details needed. Any ideas?

 

Warmest Regards,

 

N.

Parents
  • 260
    posted

    By the placing the exact code in the grids AfterRowActivate event instead on the KeyDown event seemed to resolve my issue.

Reply Children
No Data