I need to update devexpress gridview data column value automatically if condition is met. I tried to implement it using HtmldatacellPrepared but there is error at line e.GetValue("Status") = "Delay" : Expression is a value and therefore cannot be the target of an assignment. Is there any other method to use to implement this?
Protected Sub Grid_HtmldatacellPrepared(sender As Object, e As ASPxGridViewTableDataCellEventArgs)
if e.GetValue("Forecast") IsNot DBNull.Value Then
If e.DataColumn.VisibleIndex = 9 Then
If e.GetValue("Forecast") > Date.Now Then
e.GetValue("Status") = "Delay"
End if
End If
End If
End Sub