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. Image for the cookie policy date

positioning cursor inside GridAwareTextBox

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


4 Replies

AD Administrator Syncfusion Team 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




RA ranjumalhotra 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





RM Ranju Malhotra 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






AD Administrator Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon