or
<telerik:GridDateTimeColumn HeaderText="My Date>" DataField="MyDateTime" PickerType="DateTimePicker" DataType="System.DateTime" UniqueName="MyDateTime" GroupByExpression="MyDateTime Group By MyDateTime" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" FilterDateFormat="dd/MM/yyyy hh:mm tt" EditDataFormatString="dd/MM/yyyy hh:mm tt" AllowFiltering="true" AllowSorting="true"></telerik:GridDateTimeColumn>In the design time, I set the CssClass property to "red"
After some event, I try to set it to "yellow", but it doesn't work.
I tried:
TxtAmount.CssClass = "yellow";
Also
TxtAmount.CssClass += TxtAmount.CssClass.Replace("red", "yellow");
plus other ways