Hi,
I have a RadGrid with EditFormType="WebUserControl". In my usercontrol I have a custom validator to check the value and allow to update or not.
My problem is that _dataItem is null on the CustomValidator_ServerValidate event.
I try this code :
public
object
DataItem
{
get
{
return
(
object
)ViewState[
"DataItem"
];
}
set
{
ViewState[
"DataItem"
] = value;
}
}
But even with ViewState DataItem is always null (in CustomValidator_ServerValidate event).
Have you a solution ?