How can i invoke AspxGridView Update
I want to know if I can invoke AspxGridView update. I catch a data on AspxGridView Focused Row in server 开发者_运维技巧side. And if this data equles 0, I want to invoke update for this row. Else if this data equles 1, i want to invoke new row. Is it possible?
KR,
Çağın
Not sure I fully understand the question but here's how to force the data update:
Call the Gridview's UpdateEdit method. To insert a new row, call the GridView's AddNewRow method.
I decided that I don't use server side code. And this is my client side code:
<ClientSideEvents FocusedRowChanged="function(s,e)
{
s.GetRowValues(s.GetFocusedRowIndex(),'FaturaVarmi',function(v){
switch(v)
{
case 0:
case 1:
FaturaGrid.StartEditRow(s.GetFocusedRowIndex());
break;
}
})
}" />
精彩评论