You must be logged in to reply to this topic.
After a call to C1FlexGrid.StartEdit, I’d like to set the editor’s SelectionStart and SelectionLength so that the edit cursor is at the end of the existing text. Currently, if I call StartEdit, all of the text in the current editor is selected.
How do I do this?
Thanks.
Hello,
You can handle the StartEdit event of the flexgrid and use SendKeys class to place the cursor at the end of existing text. Here is the code for same:
C# code:
private void c1FlexGrid1_StartEdit(object sender, C1.Win.C1FlexGrid.RowColEventArgs e)
{
SendKeys.Send("{END}");
}
VB Code:
Private Sub c1FlexGrid1_StartEdit(sender As Object, e As C1.Win.C1FlexGrid.RowColEventArgs)
SendKeys.Send("{END}")
End Sub
Regards
Ashish
You must be logged in to reply to this topic.
As a leading component vendor in the Microsoft Visual Studio Industry Partner program, ComponentOne has been providing the widest range of Microsoft Visual Studio components, IDE platform development tools, and applications for over 22 years. ComponentOne product lines encompass custom WinForms, ASP.NET, WPF, Silverlight, Mobile, and COM components, documentation tools, and Web Parts for Microsoft Office SharePoint Server and Windows SharePoint Services.
Contact ComponentOne: 1.800.858.2739 | Pittsburgh: 412.681.4343
©2013 ComponentOne LLC All Rights Reserved.
All product and company names herein may be trademarks of their respective owners.
ComponentOne holds a license under Patent No. 5,490,216 (which expires on September 21, 2013)
