Hi Guys
Is there a way to set the width of the button cell type, I have the code below and each column follows the width instructions given to it even the check box but the button goes to the same size regardless of the width given to it?
Also is there a way to make the button appear in every row rather than just the row that has focus, the checkbox happily does this?
private void SetupLinesGrid()
{
//System.Diagnostics.Debugger.Break();
jgRunLines.AddColumn("RecID", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "RecID", 0, false, false, false, true);
jgRunLines.AddColumn("Invoice", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Invoice", 5, false, true, false, true);
jgRunLines.AddColumn("View", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaButtonCellType() {Text = "View"}, "View", 15, false, true, false,false);
jgRunLines.AddColumn("InvoiceDate", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Date", 5, false, true, false, true);
jgRunLines.AddColumn("DBName", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Customer", 15, false, true, false, true);
jgRunLines.AddColumn("DBDelAddress", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Delivery Address", 25, false, true, false, true);
jgRunLines.AddColumn("DBFFwdAddress", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Freight Fwd Address", 25, false, true, false, true);
jgRunLines.AddColumn("NoItems", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaQuantityCellType(), "No. Items", 5, false, true, false,false,DecimalPlaces: 0);
jgRunLines.AddColumn("Chosen", new FarPoint.Win.Spread.CellType.CheckBoxCellType(), "Select", 5, false, true, false, false);
//jgRunLines.AddColumn("Direction", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType(), "Direction", 25, false, true, false, true);
jgRunLines.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.RowMode;
jgRunLines.EditModePermanent = false;
jgRunLines.SelectionBlockOptions = FarPoint.Win.Spread.SelectionBlockOptions.Rows;
jgRunLines.SetupComplete();
}