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.

How to catch mousedown event in a nested GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

99958 Jun 22,2011 11:50 AM Jun 24,2011 09:10 AM WPF 1
loading
Tags: GridControl
Jorge Pampin
Asked On June 22, 2011 11:50 AM

Hello,

How to catch mousedown event in a nested GridDataControl? I need to implement Drag&Drop rows in a child grid.

Thanks!




Deenadhayalan M [Syncfusion]
Replied On June 24, 2011 09:10 AM

Hi Jorge,

Sorry for the inconvenience caused.

Currently, In nested GridDataControl cannot be able to handle the MouseDown event.

But We can able to achieve CellClick event in nested GridDataControl as follows,

Code Snippet [C#]:

void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.Style.CellType == "NestedGrid")
{
GridDataTableModel tableModel = e.Style.CellValue as GridDataTableModel;

if (tableModel.Grid != null && !dictionary.ContainsKey(tableModel))
{
tableModel.Grid.CellClick += new GridCellClickEventHandler(Grid_CellClick);
dictionary.Add(tableModel, e.Cell.RowIndex);
}
}
}

Please let us know if you have any queries.

Regards,
Deenadhayalan


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.

;