We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

positioning cursor inside GridAwareTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

72309 Mar 13,2008 05:35 AM UTC Mar 31,2008 08:27 AM UTC Windows Forms 4
loading
Tags: GridControl
ranjumalhotra
Asked On March 13, 2008 05:35 AM UTC

Hi,
I am getting data for the cell clicked inside my gridaware textbox but the cursor is always left aligned.I want to set the position of cursor anyware inside the text on mouse click,whick is not happening..

current value in cell "hello"
current position of cursor --before "h"
required position of cursor on mouse click--after "e".

Please help

Thanks
Ranju Malhotra


Administrator [Syncfusion]
Replied On March 14, 2008 11:38 AM UTC

Hi Ranjumalhotra,

Thank you for your interest in Syncfusion products.

Position cursor inside GridAwareTextBox:

You can position the cursor inside GridAwareTextBox by an editing gridcell. You can move the cursor position by using the below code:


[c#]

this.gridAwareTextBox1.WireGrid(this.gridControl1);

this.gridControl1.CurrentCell.MoveTo(1,1);
this.gridControl1.ForceCurrentCellMoveTo = true;


Also, please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Windows/F72309/main.htm

Please try this and let me know if this helps.

Regards,
G.Yavana



ranjumalhotra
Replied On March 17, 2008 09:58 AM UTC

Hi,

I think I was not clear in my specification. the code sample provided here moves the current cell to the specified position but what i want is to position the cursor inside my current cell at the position iget on on mouse click.Let's say my currentcell is having text "Hello" which is getting displayed in gridaware text box with cursor blinking before "H". If i click on "o",Mycursor within the same cell and gridawaretextbox should blink before "o".this is possible in excel if i want to modify some part of a big formula,i am able to position my cursor directly by clicking at specific location.

Please help.
Thanks
Ranju Malhotra

>Hi,
I am getting data for the cell clicked inside my gridaware textbox but the cursor is always left aligned.I want to set the position of cursor anyware inside the text on mouse click,whick is not happening..

current value in cell "hello"
current position of cursor --before "h"
required position of cursor on mouse click--after "e".

Please help

Thanks
Ranju Malhotra




Ranju Malhotra
Replied On March 19, 2008 05:52 AM UTC


Hi,

Any Solutions for the problem????????

>Hi Ranjumalhotra,

Thank you for your interest in Syncfusion products.

Position cursor inside GridAwareTextBox:

You can position the cursor inside GridAwareTextBox by an editing gridcell. You can move the cursor position by using the below code:


[c#]

this.gridAwareTextBox1.WireGrid(this.gridControl1);

this.gridControl1.CurrentCell.MoveTo(1,1);
this.gridControl1.ForceCurrentCellMoveTo = true;


Also, please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Windows/F72309/main.htm

Please try this and let me know if this helps.

Regards,
G.Yavana





Administrator [Syncfusion]
Replied On March 31, 2008 08:27 AM UTC

Hi Ranju,

Thank you for posting your query to us.

Issue: Cursor is always left aligned

I am afraid that I was not able to reproduce the issue. I have created a simple sample to test this issue and it is available in the following link.
http://websamples.syncfusion.com/samples/Grid.Windows/72309/main.htm

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Regards,
Jisha


CONFIRMATION

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.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;