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.

Enter and Down Arroy key in grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

70508 Dec 13,2007 02:03 PM Dec 14,2007 07:26 PM Windows Forms 3
loading
Tags: Grouping
Natalija Ilic
Asked On December 13, 2007 02:03 PM

I upgraded Grid Grouping control from 4.2.0.60 to 5.2.0.25. Enter key and DownArrow key used to work the same way. If cursor was on the top row, after Enter or DownKey AddNewRow will be added on the top, and row will be saved. Right now Enter Saves the row but not DownArroy key. How I can make them to work the same way?
I assume that after pressing any of those keys LeaveRecordCalled is fired.



else if.zip

Administrator [Syncfusion]
Replied On December 14, 2007 04:32 AM

You might try calling record.EndEdit() to see if that does what you need in your code.

But I could not see this problem using our latest 6.1 code. Here is the sample I used. I could enter a value in the top row in the GridGroupingControl, press the downarrow, and see it appear in the neighboring DataGridView.



WindowsApplication20.zip

Natalija Ilic
Replied On December 14, 2007 01:05 PM

Hi,
I tried your code but in 5.2 Grid because we are using that one (and I can’t use any other) and it didn't work. When I key in the grid and press Enter only the first column value appears in the GridView (which is not bed).
But if I key in the new row and press downarrow the values are still not in the GataView unless I start to key in the next new row in the grid. So it seems that the changes are not committed or saved in the table.
In my application the row state of record is “detached” after pressing downarrow, and “added” after pressing enter. How to change that and make the row state added when I press downarrow, I tried with e.TableControl.Table.EndEdit() in TableControlCurrentCellKeyDown when e.Inner.KeyData == Keys.Down but it didn't work.
private void gdInvoiceMatching_TableControlCurrentCellKeyDown( object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyEventArgs e )
{
switch ( e.Inner.KeyData )
{
//…………………………
case Keys.Down:
e.TableControl.Table.EndEdit();
break();
}
}
Can you please tell me what I can try next?


>You might try calling record.EndEdit() to see if that does what you need in your code.

But I could not see this problem using our latest 6.1 code. Here is the sample I used. I could enter a value in the top row in the GridGroupingControl, press the downarrow, and see it appear in the neighboring DataGridView.



WindowsApplication20.zip


Administrator [Syncfusion]
Replied On December 14, 2007 07:26 PM

I was able to avoid this problem in 5.2.0.25 by handling 2 events. Here is the sample back showing the events and the code.




WindowsApplication20.zip

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.

;