inventory liste price

I want to know if is it possible to change the all the price for an inventory item via c sharp app ? Here is an exemple of the code i use to update inventory item:


If (SDKInstanceManager.Instance.OpenDatabase(saiFile, username, password, False, "Sage 50 SDK Sample Program", "SASDK", 1)) Then

Try
Dim Input As String = "00Xa"
Dim invled As InventoryLedger = SDKInstanceManager.Instance.OpenInventoryLedger()

Try

If invled.LoadByPartCode(Input) Then
invled.NameAlt = "Test same"
invled.PreferredPrice = 32
invled.Save()

Else
MsgBox("Not found")
End If

Catch ex As InvalidEntryException
MsgBox(ex.Message)
End Try

SDKInstanceManager.Instance.CloseInventoryLedger()