Renaming the "Duty"'field on a GRN
I need to rename the Duty field on the GRN form. Using the Permissions option to find the fieldname does not identify this field.
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
Dim GRNFormObject As JiwaInvReceivalUI.MainForm = JiwaForm
AddHandler GRNFormObject.Shown, AddressOf GRNFormObject_Shown
End Sub
Public Sub GRNFormObject_Shown(sender As Object, e As System.EventArgs)
Dim GRNFormObject As JiwaInvReceivalUI.MainForm = sender
With GRNFormObject.CartageJiwaGrid
Dim rowKey As String = ""
Dim dutyRowNo As Integer = -1
'Find the Duty row
For MyLoop As Integer = 0 To .ActiveSheet.RowCount - 1 'Grids are 0-based - the - 1 accounts for this.
rowKey = .GridText("Key", MyLoop)
If rowKey = "Duty" Then
dutyRowNo = MyLoop
Exit For 'We've found the row we are interested in.
End If
Next
'Assuming we found the Duty row OK, we can now set the text of the "RowHeading" column for that row.
.GridText("RowHeading", dutyRowNo) = "Import Levy"
End With
End Sub