Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
1133 | Sep 25,2002 03:07 PM UTC | Sep 26,2002 04:55 AM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
Public Sub SelectCellText(ByVal row As Integer, ByVal col As Integer, ByVal selStart As Integer, ByVal selLength As Integer) Try Me.GridControl1.Focus() If Not Me.GridControl1.CurrentCell.HasCurrentCellAt(row, col) Then Me.GridControl1.CurrentCell.MoveTo(row, col, Syncfusion.Windows.Forms.Grid.GridSetCurrentCellOptions.SetFocus Or Syncfusion.Windows.Forms.Grid.GridSetCurrentCellOptions.ScrollInView, False) ElseIf Not Me.GridControl1.CurrentCell.IsEditing Then Me.GridControl1.CurrentCell.BeginEdit() End If Dim tb As GridTextBoxControl = CType(Me.GridControl1.CurrentCell.Renderer.Control, GridTextBoxControl) tb.SelectionLength = selLength tb.SelectionStart = selStart Catch End Try End SubTo decide whether a cell is visible or not, you can use the methods GridControl.ViewLayout.IsColVisible and GridControl.ViewLayout.IsRowVisible.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.