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.

DateTime cell focus issue

Thread ID:

Created:

Updated:

Platform:

Replies:

72997 Apr 15,2008 09:49 AM May 15,2008 09:21 AM Windows Forms 1
loading
Tags: GridControl
Ubaid
Asked On April 15, 2008 09:49 AM

Hi haneef ...

i am facing 2 issues regarding grid as follows:

1) I am using DateTimeCell model as given in the syncfusion samples, when datetime cell is in edit mode, i wont be able to click on some other control unless i click on that particular grid on a non datetime cell.

2) When mouse pointer is moved to the edge of any cell in edit mode, a small rectangle appears and now if i click there and drag it to some draggable control, cell value of that cell resets.

Please find the attached sample to produce the above issues and suggest me some solutions.


FYI: i am using syncfusion version 4.402.0.51

Regards,
Ubaid Tariq



GridIssues.zip

Janagan [Syncfusion]
Replied On May 15, 2008 09:21 AM

Hi Ubaid,

1) Cannot shift the focus to the other controls from the cells in the grid:

You can shift the focus to the other controls in the form from the grid by removing the Grid.Focus() in the datetimepicker in the given sample as mentioned in the code below:


protected override void OnDeactived(int rowIndex, int colIndex)
{
if (dateTimePicker.Visible)
{
this.dateTimePicker.Hide();
//Grid.Focus();
}



2) The mouse pointer on click and drag from the cell resets the cell:

The mouse pointer on click of the cell and dragging from the cell resets the value of the cell due to the dragenter event. In the dragenter event the text is moved which resets the cell.

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

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


Please refer the modified sample and let me know if this helps.

Regards,
Janagan.




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.

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.

;