for (int iRow = 0; iRow < ProductsRadGridView.Rows.Count; iRow++)
{
for (int iCell = 2; iCell < 6; iCell++)
{
if (ProductsRadGridView.Rows[iRow].Cells[iCell].Style.BackColor == Color.Red)
{
}
//valid = false;
//MessageBox.Show("One or more Line Item Values needs modification. Please make the necessary change.);
//return valid;
}
}
However, the Style.BackColor returns some ambigous name called "ControlDarkDark". This is the value regardless of the back color.
How can I check what the back color really is?
Lee
Dim
appt
As
IEvent =
Nothing
appt = GetAppointment(
CLng
(msSearchID))
If
appt IsNot
Nothing
Then
SchedulerUIHelper.SelectAppointment(radScheduler1, appt,
True
)
End
If
Private
Function
GetAppointment(
ByVal
nID
As
Long
)
As
IEvent
Dim
appt
As
IEvent =
Nothing
Try
For
Each
a
As
IEvent
In
radScheduler1.Appointments
If
a.UniqueId.KeyValue =
CStr
(nID)
Then
appt = a
End
If
Next
Return
appt
Catch
ex
As
Exception
Return
appt
End
Try
End
Function
msgbox(RadCalendar1.SelectedDate.Date)
Hope to get the answer as soon as posible cause this is urgent....
Thank!
Regards
Johnny