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

[Solved] Item command event

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kunmuni
Top achievements
Rank 1
Kunmuni asked on 04 Jun 2009, 07:03 PM
Hi,

I am having this strange set of problem. I am binding the grid at 2 places, once at page load and once when setting a value. Both are calling Grid.Rebind. But Rebind is not firing grid_needDatasource event when called for the second time after pageload. If Iam removinf Grid.Rebind from Pageload, then My item_command event is not being fired. I'll appreciate any solution to this problem

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jun 2009, 05:53 AM
Hi,

From the above post I suppose that you are binding the Grid in the PageLoad event. I would suggest you to bind the Grid in the NeedDataSource event. Inside the NeedDataSource event you just need to assign a proper DataSource to Grid and no need of calling an additional Rebind. If this does not help try sending your code behind.

Shinu
Tags
Grid
Asked by
Kunmuni
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or