Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

SetCurrentRowColumnByIndex()

  • Last UpdatedNov 25, 2015
  • 1 minute read

Use the SetCurrentRowColumnByIndex() method to update the column at index columnNumber in the currently selected row.

Syntax

result SetCurrentRowColumnByIndex (
int ColumnNumber,
object NewValue)

Parameters

ColumnNumber

The zero-based index of the column in the memory table.

NewValue

You can specify a constant or a valid ArchestrA reference string. Both relative references and fully qualified references are supported. For example:

  • me.ShortDesc – relative reference

  • UD1.status – fully qualified reference string

  • "John Smith" – constant

Remarks

Necessary conversions are performed internally to cast newValue to the column type.

When you try to change a value using this method and the type passed in does not match the type specified for the column in the database table, one of the following outcomes occurs:

  • The value is written with an automated type conversion

  • The transaction fails completely because the conversion would result in loss of data.

The actual update to the data source is delayed until you call SaveChangesSync() or SaveChangesAsync().

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in