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.
My question still has to do with validation. I've looked through all of the examples I could find, and nothing matches what I'm looking for: when the user is done with the form (and the GGC), the user will click on a Save button. When that happens, I need to loop through the visible data in the grid, performing various cross-checks, and highlight all cells that are in error. Here's a code snippet of what I have so far:
So, I'm looping through the filtered records, since I *am* using a filter. I cast the grouping record to my underlying data so I can check the fields I'm interested in, and I find an error. Now, how do I mark the corresponding cell in the *grid* as having an error? Specifically: how do I figure out the row and column indices for the cell, and then how do I set the ErrorMessage for that cell so that it's highlighted and has the error icon? Is this even the correct approach, or is there a better way?
ADAdministrator Syncfusion Team November 8, 2006 10:08 AM UTC
Hi Michael,
My apologies for the delayed response.
Issue 1 : Draw the Error Icon in a cell.
The TestErrorProvider browser sample shows you how to draw an ErrorProvider-like icon for cell using the IconPaint class. Also refer to the below forum thread for customizing the ErrorIcon. http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=46953
Issue 2: Find the RowIndex of the record.
Please refer to below Evalution Center link(=>GroupingGrid category) for more details. http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5