Unplanned
Last Updated: 04 Oct 2024 10:22 by ADMIN
Jackson
Created on: 04 Oct 2024 10:10
Category: GridView
Type: Bug Report
2
RadGridView: NullReference exception is thrown when exporting empty cell in GridViewHyperlinkColumn
In this case, we have a GridViewHyperlinkColumn in which we have a cell with an empty string or null value. Exporting the control in XLSX format leads to an exception.
1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 04 Oct 2024 10:22

Hello Jackson,

Thank you for reporting this exception. A possible workaround is to avoid setting the value of the cell in GridViewHyperlinkColumn to a null or empty string. You can set it to empty space.

 row.Cells["Hyperlink Column Name"].Value = " ";

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.