Question

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

Was it helpful?

Solution 2

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;
                            }
                          })
                        }" />

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top