How to catch mousedown event in a nested GridDataControl

Hello,

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

Thanks!




1 Reply

DM Deenadhayalan M Syncfusion Team June 24, 2011 01:10 PM UTC

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


Loader.
Up arrow icon