2
我想更改Datarow
值。我想更改DT2[0].ItemArray[3]
我試過這段代碼,但沒有奏效。無法更改DataRow值
private void Func(DataRow[] DtRowTemp)
{
DataRow[] DT2 ;
DT2 = DtRowTemp; // It work and DTRowTemp value has set to DT2
// above code don't work
DT2[0].ItemArray[3] = 3; // Last Value Was 2 and I want to change this value to 3
}
或者只是'DT2 [0] [3] = 3;' – shf301
@ shf301,事實上。謝謝,我會將其添加到答案中。 –
哇,謝謝。它的工作 –