Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1285
WebDataGrid - ExcelStyleFilter causes KeyNotFoundException
posted

Hi,

I have been working with the most recently released version of the WebDataGrid and currently have it bound to a data source which gets it's data from SQL.

Everything is working fine, until the the datasource return 0 rows. Normally I would expect to see the grid with just column headers according to the bound data fields I have set up, but instead I receive a KeyNotFoundException.

After doing some testing to narrow down the cause, I determined that having the FilterType set to ExcelStyleFilter was causing the error. When I changed this to RowFilter, the grid loaded correctly with 0 rows and did not throw an error.

To confirm, this error only occurs when the datasource return 0 rows, and ExcelStyleFilter is used.

Any thoughts would be appreciated.

Parents Reply Children
No Data