Not sure the title of this question is understood, but my problem is:
Nearly a teller grid, Linq is bound to the data object, however, I restrict the fields I've played:
& lt; IQueryable & gt; Filter = data Select (x = & gt; new {x.id, x.Name, X.Age});
I want to access these fields in grid's item-created method:
safe void rgPeople_ItemCreated (Object Sender, GridItemEventArgs e) {Telerik.Web .UI.GridDataItem Item = (GridDataItem) e.Item; Line Person = (???????) e.Item.DataItem; }
What will I declare ?????? As I can use it:
string id = Person.ID; String name = person .name; I think that what I wanted to do in the item Databong event handler, I could have.
Below is a part of my code
Protected Zero grMain_ItemDataBound (Object Sender, GridItemEventArgs E) {If (e.Item is GridDataItem) {GridDataItem Item = (GridDataItem) e.Item; // Now I can find the object from the list that the line is bound to pricing I}}
Comments
Post a Comment