The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team July 25, 2008 10:15 PM UTC
Try code like: GridConditionalFormatDescriptor cfd = new GridConditionalFormatDescriptor(); cfd.Expression = "[dateColumn] BETWEEN {,TODAY}"; cfd.Appearance.AnyRecordFieldCell.BackColor = Color.Red; this.gridGroupingControl1.TableDescriptor.ConditionalFormats.Add(cfd);
Here is a paragraph from the Grouping User Guide on working with dates in expressions.
between - Checks if a date field value between the two values is listed in the right-hand operand. For example, [date] between {2/25/2004, 3/2/2004} returns 1 for any record whose date field is greater than or equal to 2/25/2004 and less than 3/2/2004. To represent the current date, use the token TODAY. To represent DateTime.MinValue, leave the first argument empty. To represent DateTime.MaxValue, leave the second argument empty.
RFreza fotovatJuly 30, 2008 06:53 AM UTC
Hi, Thanks for your reply
But I want to check the "Date" and "time" , today in only act on date not time
and I want to mark cols .value bigger than a "NOW"
regards
ADAdministrator Syncfusion Team July 31, 2008 09:36 AM UTC
One way you can do this is to use a custom FilterCondition. To do this, you create an object that implements ICustomFilter and use this when you set up your FilterCondition. Here is minimal sample that marks rows with date greater than DateTime.Now as red.