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

DataItem availability in grid PreRender

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jmillar
Top achievements
Rank 1
jmillar asked on 09 Jan 2009, 03:40 PM
Hello;

I'm working on upgrading a series of applications using grid 4.5.0 to grid 5.1.5.  In some cases, there is code relying on access to GridEditableItem.DataItem in the PreRender event that seems to no longer work.  I just wanted to quickly check -- should the DataItem for a GridItem still be available in PreRender?

Thanks in advance,
Jason

1 Answer, 1 is accepted

Sort by
0
jmillar
Top achievements
Rank 1
answered on 09 Jan 2009, 06:54 PM
Oops...looks like I was a bit tunnel visioned.  Seems what's happened is a change in behaviour with .DataBind().  In our old version, calling .DataBind() resulted in a call to NeedDataSource.  The latest version seems to have different (although admittedly documented) behaviour.
Tags
Grid
Asked by
jmillar
Top achievements
Rank 1
Answers by
jmillar
Top achievements
Rank 1
Share this question
or