Skip to Content
0
Former Member
Mar 31, 2009 at 02:47 AM

its too slow traversing system matrix

23 Views

Hi all

i want to set a value in a system matrix.but when matrix contains more row its become deadly slow

my code is below

for (int i = 1; i < oMatrix.RowCount;i++)

{

oItemText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("1").Cells.Item(i).Specific;

oStockText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("5").Cells.Item(i).Specific;

string cellCode = oItemText.Value;

if (cellCode == itemCode)

{

oStockText.Value = "1";

break;

}

}

is any one have solution pls reply

thanks