Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

GridDataItem - does not contain a definition

$
0
0

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#

protectedvoidMask_NeedDataSource(objectsender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            GridDataItem dataItem = e.ItemasGridDataItem;
            string@Empl_ID = dataItem.GetDataKeyValue("Empl_ID").ToString();
            RadGridEmpl.DataSource = DataLayer.FirmEmployees.PhoneMask(@Empl_ID);
        }

how can this be fixed?


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>