Replied 8 September 2017, 2:35 pm EST
In order to have the get away with the cell focus when the Spread is rendered for the first time you need to set Spread's FocusRenderer property to null and then set it to SolidFocusIndicatorRenderer as soon as you enter the Spread using Spread's Enter event. Please have a look at the code for the same.
private void Form2_Load(object sender, EventArgs e)
fpSpread1.FocusRenderer = null;
fpSpread1.Enter += new EventHandler(fpSpread1_Enter);
void fpSpread1_Enter(object sender, EventArgs e)
fpSpread1.FocusRenderer = new FarPoint.Win.Spread.SolidFocusIndicatorRenderer(Color.Black, 2);
And for changing the style of the borders of a selected cell, you can set the cells border to particular style of Cell border.
FarPoint.Win.BevelBorder bevelbrdr = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Green);
// Set the bevel border to the cell B3 border.
fpSpread1.Sheets.Cells[3,3].Border = bevelbrdr;
You can have a look at the 'Customizing Cell Borders' topic in our online product documentation at this link wherein different border styles have been discussed:- http://www.clubfarpoint.com/FarPointSupportSite/Modules/Docs/SpreadWin5Help/index.html
Hope this will help you. Thanks.