0

I am using DayPilot which has two attributes DataValueField and DataIdField. Both are assigned with some values. I can access DataIdField in Code behind using e.Value but cannot access DataValueField.

Are these same things or they are different ?

Please help

Abdul
  • 2,002
  • 7
  • 31
  • 65

1 Answers1

0

Same as my other answer:

As seen on this link the DataValueField is obsolete:

Gets or sets the name of the column that contains the id (primary key). Obsolete. Use .DataIdField instead.

In my project I can access the value this way:

DataValueField="id" //column "id" of my source table

Get it in BeforeEventRender:

string id = (string)e.DataItem["id"];

Kᴀτᴢ
  • 2,146
  • 6
  • 29
  • 57