BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Qurey1:
have seen earlier that the index might not be the best unique identifier for a record, as it might change depending on the sorting made on it, hence I believe that GGC.Table.CurrentRecord.Id might the best unique identifier for a record in the grid, Am I correct?
|
Yes, Record.Id is the unique identifiers for the record. Each row is having identifiers in GridGroupingControl. |
Qurey2:
Second question is as follows: Is it possible to find this record ID (without going through a loop if possible) or any other unique record identifier you would recommend on the first question, using a known Column name and a unique value in this column |
In order to get the record based on the id, you can use this differentiated id in Table.UnsortedRecords to retrieve the record. Please refer the below code snippet and refer the attached sample.
Code snippet:
//Get the first record id initially.
startingRecordId = this.gridGroupingControl1.Table.Records(0).Id
//In ClipboardCopy event
Dim currentRecordId As Integer = Me.gridGroupingControl1.Table.CurrentRecord.Id
Dim recordIndex As Integer = currentRecordId - startingRecordId
copiedrecord = Me.gridGroupingControl1.Table.UnsortedRecords(recordIndex) |