I am trying to pull grid column data in order to call a procedure. on e.item, bold below, i am receiving error :
Error1'Telerik.Web.UI.GridNeedDataSourceEventArgs' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'Telerik.Web.UI.GridNeedDataSourceEventArgs' could be found (are you missing a using directive or an assembly reference?)
here is the C#
protected
void
Mask_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
GridDataItem dataItem = e.Item
as
GridDataItem;
string
@Empl_ID = dataItem.GetDataKeyValue(
"Empl_ID"
).ToString();
RadGridEmpl.DataSource = DataLayer.FirmEmployees.PhoneMask(@Empl_ID);
}
how can this be fixed?