|
Query |
Solution | |
|
As you can see, the border disappears.
What is the problem? |
If you handled the DrawCell event, borders will not be drawn for the cell.
In the help documentation you can see that we have included code to draw the borders using Graphics.DrawLine method. You have to included those line of codes to resolve this.
| |
|
I want to export this datagrid to excel.
But the picture is not exported.
How can I export even pictures to excel? |
While exporting the DataGrid to excel only the values which are residing in the underlying DataSource will be exported. If you need to export with the image, you need to manually add the images to the excel by using ExcelExportingOptions.CellExporting event.
We have prepared a sample for this and it is available in the following link for your reference.
Sample link : https://www.syncfusion.com/downloads/support/forum/166177/ze/SfDataGrid_ExportImageDemo584266176
|
|
How can I increase the row height?
|
We are currently working on this. We will check and update with details on June 15, 2021. We appreciate your patience until then. |
|
If there are many pictures, out of memory problem occurs.
Is there any way to solve the out of memory problem? |
We are unclear with this query. Please revert to us with more detail about this query and the problem you are facing when using more pictures. It will be more helpful for us to understand the requirement and to provide a prompt solution. |
Thanks for your reply.
I want to set the picture of different sizes to the same size and reset the height of only the rows with pictures.
I look forward to your reply.
Regards,
Ki hun
I can't solving the memory problem.
If sfdatagrid has a lot of pictures or data, it will run out of memory.
This is my code ( This code is running inside CellExporting. )
if (File.Exists(imgPath))
{
using (Image image = Image.FromFile(imgPath))
{
e.Range.Worksheet.Pictures.AddPicture(e.Range.Row, e.Range.Column, image, 100, 100); <- Out of memory point.
e.Handled = true;
}
}
I think that Image-related byte[] has a memory leak in AddPicture().
maybe not...
Please check it.
Thanks for checking.
So there is no solution?