This is a migrated thread and some comments may be shown as answers.

Bind Grid without reset its States

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Myname
Top achievements
Rank 1
Myname asked on 21 Oct 2012, 06:31 PM
hi.
how r u.

can you help me?

i have a web form data entry. it has a RadGrid and some RadTexBoxes to insert and update out of RadGrid.
my problem:
 after update data by TextBoxes, when call DataBind method from RadGrid all of States in RadGrid Losts.
the sort, filter, ....

how can i resolve this problem?

(excuse me for my bad english skill ;)  )

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Oct 2012, 03:26 AM
Hi,

Please make sure that you are binding the RadGrid using NeedDataSource event. NeedDataSource event will fire immediately after any Update, Delete, or Insert command event handlers finish execution. So need to call DataBind/rebind event after Update, Delete, or Insert command event handler. Please take a look into this help documentation. Sort, filter and paging works fine with Advanced Data binding.

Thanks,
Shinu.
Tags
Grid
Asked by
Myname
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or