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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Double Click even for GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

72642 Mar 30,2008 06:45 AM UTC Mar 31,2008 10:12 PM UTC WinForms 1
loading
Tags: GridControl
cheung
Asked On March 30, 2008 06:45 AM UTC

Hi, I've just used GridGroupingControl to display a list of contacts retrieved from a dB contact table. I'd like to allow the user to double click on a row to open up a contact edit form. How can I do this? Thx.


Administrator [Syncfusion]
Replied On March 31, 2008 10:12 PM UTC

Hi cheung,

To open up a contact edit form by double clicking in a row you need to handle below code snippet in TableControlCllDoubleClick event.

Form2 f = new Form2();

Record rec = e.TableControl.Table.CurrentRecord;

f.Col0 = rec.GetValue("Col0").ToString() ;
f.Col1 = rec.GetValue("Col1").ToString();
f.Col2 = rec.GetValue("Col2").ToString();
f.Col3 = rec.GetValue("Col3").ToString();

f.ShowDialog();
if (f.DialogResult == DialogResult.OK)
{
rec.SetValue("Col0", f.Col0);
rec.SetValue("Col1", f.Col1);
rec.SetValue("Col2", f.Col2);
rec.SetValue("Col3", f.Col3);
}


Please refer the sample for implementation and let me know me know if you need further assistance.

Sample:


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


Best regards,
Johnson




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

;