Hi
Just need some help converting a VB grid to C#.
Binding is to a datatable deserialised from JSON using NewtonSoft.Json library.
I have the following line in VB that works OK:
If e.Appointment.DataItem("UsageType") = 1 Then...
However the same line in C#
if (e.Appointment.DataItem("UsageType") == 1) {
Errors with a red squiggle under DataItem with the following text:-
SchedulerEventArgs does not contain a definition for Dataitem and no extension method DataItem accepting a first argument of type SchedulerEventArgs could be found.
I have the following using statements:
using Telerik.Web.UI;
using Telerik.Web;
using System.Data;