FNCGrid cell borders

Hi

What's the best approach for setting border styles for cells - e.g. if I load an Excel file with cells having different border weights. I'm using the GetCellLayout event to set fonts, alignment etc but it's not clear how to control individual borders.

Thanks, Bob

Hi,


This can also be done in the OnGetCellLayout where you can access the Stroke for appearance and the Sides property for control which borders of the cell are drawn.
Thanks - from my tests though it looks like all borders of the cell will be the same colour or thickness? So I can't have say a red bottom and top and blue sides?

Cheers, Bob

Through the OnGetCellLayout this is not possible, but you can use the OnBeforeDrawCell or OnAfterDrawCell and drawn your own borders.