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
295
CellActivation =.Activate.AllowEdit only working for top row in grid
posted

If I have 2/3/4 etc rows in my UltraGrid, I've got an issue. I'm trying to allow edit of 2 columns in the active row when the date column value is changed.

The 2 cells are only editable once the top row in the grid has had a date value entered.

However, I want it to activate for the row that the date was entered on, even if the top row hasn't got a date value.

I've also tried just updating the bottom row, clicking a different control, and seeing if it works then, but it still doesn't.

Am I doing something wrong? I've tried both of the activation lines using the e.Cell.Row.Cells method, and the row.Cells method.

Try
   If e.Cell.Column.Key = "PaymentDate" Then
      e.Cell.Row.Cells("Customer_Paid").Activation = Activation.AllowEdit
      e.Cell.Row.Cells("Customer_Paid").Value = True
      row.Cells("suppInvoiceNum").Activation = Activation.AllowEdit
   End If
Catch ex As Exception
   errorLog(ex)
End Try

Parents
  • 469350
    Offline posted

    Hi David,

    I'm having a very hard time understanding what you are trying to achieve. Even the code snippet you have here isn't really very useful, since I don't know what event this code is in.

    Maybe you could post a screen shot or a sample application with more details about exactly what you are trying to do.

Reply Children