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.
I can not get the DataRowView from the Record in the TableControlCurrentCellValidating.
Record rec = e.TableControl.Table.CurrentRecord; DataRowView drv = rec.GetData() as DataRowView;
Please help! DataRowView is null!
ADAdministrator Syncfusion Team December 14, 2006 06:54 AM UTC
Hi James,
Please refer to the following sample which demonstrates the retrieving of the DataRowView of the currently edited record using your code snippet. Please check whether the editing row is being Record display kind. Which version of the grid are using?
Kindly try it and let us know if you need any further assistance. Have a nice day.
Best regards, Madhan
JBJames BliboDecember 15, 2006 10:44 PM UTC
This is the same code that I posted and said wasn't working. DataRowView is always null.
I have a flat datasource that is grouped by one column. The version of the grid is 4.4
ADAdministrator Syncfusion Team December 18, 2006 10:15 AM UTC
Hi James,
Thank you for being patience.
We tried using your code snippet to reproduce the issue here. The reason for the DataRowView being null is because the resultant of the rec.GetData() method is DataRow. Please try using the following code snippet to retrieve the data.
>>>>>>>>>>>> // TableControlCurrentCellValidating event Record rec = e.TableControl.Table.CurrentRecord; DataRow dr = rec.GetData() as DataRow; Console.WriteLine(dr[0]); >>>>>>>>>>>>
Kindly let us know if you need any further assistance.
Best regards, Madhan
Need More Help?
Get personalized assistance from our support team.