J
Just Me
Hi,
I am using the gridview with a business object ( just a function which
updates using a stored proc on sqo2005 ). Anyway.
Basically, the reord displayed in the grid is simple
ExpenseWeekID WeekEndingDate AmountPaid.
OK, now, when I click the edit link on the gridview, it puts the grid into
edit mode. ( Note that the ExpenseWeekID is listed as readonly as its the
primary key.
I Make my update to lets say the amountpaid and click Update. This caused
my update function to be called and the parameters are passed to the
function. these are the three already listed.
ExpenseWeekID WeekEndingDate AmountPaid.
However, the EspenseWeekID, is of course read only and the value passes is
allways ( 0 ) meaning that the update cannot work. If I then change this
from read only so that when the grid is in edit mode, and then click update
the correct value is passed to my functiona and the update workds properly.
HOWEVER, I dont want the Primarykey to be in editable mode, how can I
overcome this without having to code all this manually.
Cheers
I am using the gridview with a business object ( just a function which
updates using a stored proc on sqo2005 ). Anyway.
Basically, the reord displayed in the grid is simple
ExpenseWeekID WeekEndingDate AmountPaid.
OK, now, when I click the edit link on the gridview, it puts the grid into
edit mode. ( Note that the ExpenseWeekID is listed as readonly as its the
primary key.
I Make my update to lets say the amountpaid and click Update. This caused
my update function to be called and the parameters are passed to the
function. these are the three already listed.
ExpenseWeekID WeekEndingDate AmountPaid.
However, the EspenseWeekID, is of course read only and the value passes is
allways ( 0 ) meaning that the update cannot work. If I then change this
from read only so that when the grid is in edit mode, and then click update
the correct value is passed to my functiona and the update workds properly.
HOWEVER, I dont want the Primarykey to be in editable mode, how can I
overcome this without having to code all this manually.
Cheers