N
nologo
hi all, having a few problems with a index loop on a dataset im
using. basically i have a datagrid displaying rows of data. i select
1+ rows, it deletes them but misses the last row.
for (int iIndex=0; iIndex<this.ultraGrid1.ActiveRow.Index; iIndex++)
{
// Store the schemeID to int
int iSchemeID = (int)this.cmbx_basetest.SelectedItem.DataValue;
// Store the Item Code to Delete
string strNumber = this.ultraDataSource1.Rows[iIndex]
["ItemCode"].ToString();
// Pass the ItemCode to the store procedure to delete
clsTestScheme test = new clsTestScheme();
test.TestDeleteProduct(iSchemeID, strNumber);
}
I cant see what im missing here..
Cheers in advance for any assistance
using. basically i have a datagrid displaying rows of data. i select
1+ rows, it deletes them but misses the last row.
for (int iIndex=0; iIndex<this.ultraGrid1.ActiveRow.Index; iIndex++)
{
// Store the schemeID to int
int iSchemeID = (int)this.cmbx_basetest.SelectedItem.DataValue;
// Store the Item Code to Delete
string strNumber = this.ultraDataSource1.Rows[iIndex]
["ItemCode"].ToString();
// Pass the ItemCode to the store procedure to delete
clsTestScheme test = new clsTestScheme();
test.TestDeleteProduct(iSchemeID, strNumber);
}
I cant see what im missing here..
Cheers in advance for any assistance