cagin
cagin

Reputation: 5930

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

Upvotes: 0

Views: 4117

Answers (2)

DevExpress Team
DevExpress Team

Reputation: 11376

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.

Upvotes: 1

cagin
cagin

Reputation: 5930

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

Upvotes: 0

Related Questions