Subject: Single-Click behavior on GridDataBoundGrid cell problem...

Hello, I have a GDBGrid with a (textbox) column defined as follows: Dim gridBoundColumnBidAdjustment As New Syncfusion.Windows.Forms.Grid.GridBoundColumn Me.GridDataBoundGridIndex.GridBoundColumns.Add(gridBoundColumnBidAdjustment) gridBoundColumnBidAdjustment.HeaderText = "Bid Adj" gridBoundColumnBidAdjustment.MappingName = "BidAdjustment" gridBoundColumnBidAdjustment.StyleInfo.CellValueType = GetType(Decimal) gridBoundColumnBidAdjustment.StyleInfo.Format = "#,##0.00###" gridBoundColumnBidAdjustment.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right Me.GridDataBoundGridIndex.Model.ColWidths(4) = 50 When (single)clicking a cell in this column, it will place the cursor (briefly) whereever in the existing text I happened to click then immediately move the cursor all the way to the left side of the text (so that if I type anything it is inserted in front of existing text in that cell). I need it to act more like excel such that a single click to a cell in this column selects the whole cell so that if I start typing it will REPLACE the contents (instead of INSERTing in front of)

1 Reply

ST stanleyj Syncfusion Team January 26, 2006 09:43 AM UTC

Hi Hal, Try setting ActivateCurrentCellBehavior and see if that could help. Me.gridDataBoundGrid1.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll Also refer this thread, if you need to replace character by character instead of insertion. Best regards, Stanley

Loader.
Up arrow icon