-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: SivaDotNet
Message 4 in Discussion
Hi, Wish u can further Explorate with the help of below code. Also
suggest u thru go thru Infragistics help for more info. Client Side:
function BuildTDeals() { var strTransferDeals,strGrdName strTransferDeals =
''; strGrdName = 'grdDealTransfer'; // Grid Name if
(window.document.getElementById(strGrdName)) { var row =
igtbl_getActiveRow(strGrdName); if (row != null) { var
rowElem=igtbl_getFirstSibRow(strGrdName,
igtbl_getElementById("grdDealTransferr_0")); //Column while(rowElem) { var
rowObj=igtbl_getRowById(rowElem.id); if (rowObj.getCell(0).getValue() == 1) {
if (strTransferDeals == '') strTransferDeals = rowObj.getCell(1).getValue();
else strTransferDeals = strTransferDeals + ',' + rowObj.getCell(1).getValue();
} rowElem=igtbl_getNextSibRow(strGrdName,rowElem); }//End of While }
document.frmTransferDeals.txtDealIds.value = strTransferDeals; } } Server
Side: used for updates.
table = dsHardware.Tables(grdSysHardware.Bands(0).BaseTableName)
keys(0) = table.Columns("DealId")
keys(1) = table.Columns("VersionNo")
keys(2) = table.Columns("Line_No")
table.PrimaryKey = keys
Dim UpdatedRows As UltraGridRowsEnumerator
UpdatedRows = grdSysHardware.Bands(0).GetBatchUpdates
Try
While UpdatedRows.MoveNext
row = UpdatedRows.Current
If row.DataChanged = DataChanged.Modified Then
Dim key(2) As Object
key(0) = row.DataKey(0).ToString
key(1) = row.DataKey(1).ToString
key(2) = row.DataKey(2).ToString
'strRow = row.DataKey
If (Not (key Is Nothing)) Then datarow1 = table.Rows.Find(key)
'Try to update the cell in this row.
If (Not (datarow1 Is Nothing)) Then
Dim k As Integer
For k = 0 To row.Cells.Count - 1
If IsNothing(row.Cells(k).Value) Then
datarow1(k) = System.DBNull.Value
Else
datarow1(k) = row.Cells(k).Value
End If
Next
End If
End If
End While HTH, Siva
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]