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''m not sure this is specific to Syncfusion, but I appreciate any help.
I''ve got an entity object that contains a method called GetDollarsForWeek(int weekNumber), therefore passing in a week number will return a dollar total. Is there any way to bind an entity object to the GridDataboundGrid which binds a column to a method?
Or is there a way to represent a dynamic number of properties within an entity object that can be binded to the grid? For example, a variable number of weeks?
Thanks,
Todd
ADAdministrator Syncfusion Team October 13, 2005 04:18 PM UTC
To use a GridDataBoundGrid, your entity object would have to be some kind of IList.
You can use a GridControl in virtual mode to bind to anything. In virtual mode, the grid raises an event (QueryCellInfo) when it wants data for a given row, col. And in your event handler, you could provide the data from wherever you wanted to get it, including calling methods on objects. Now, you would want such methods to be very efficient as QueryCellInfo is raised constantly, many, many, many times. Check the grid''s User Guide for information on virtual grids.