Hi Telerik team
I would like to go through every cell in a RadGridView to get the value, foreground and background of each cell.
Do you have any solution for that?
For your information, I tried gridView.ItemContainerGenerator.ContainerFromItem() but it work only for the current view port but I need all pages.
Many thanks for your support,
Hi Minh,
Could you please specify why do you need the Background and Foreground properties of each cell? So we can try to provide a solution for your issue.
Hi Stanley,
Thank for your prompt reply.
In fact, I have a financial grid where some cells have specific foreground and background colors. I need develop a print preview of the grid and keep all the current grid view properties such as colors of cells, width of cells, alternative row colors, number format in cell etc…
I tried use the default print preview of telerik but the result is very far from what we expected, because the grid is quite complex with alot of business rules to be considered. I finaly chose export to excel way where I can freely custom the preview as I want based on the current view of grid. That’s why I need to know the colors of every cell in the current grid.
Many thanks,
Minh