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

WPF SpreadSheet Doubleclick event to get the cell value

Thread ID:





108741 May 9,2013 11:03 AM UTC Feb 10,2018 09:39 PM UTC WPF 2
Tags: SpreadsheetControl(Classic)
Abraham. P
Asked On May 9, 2013 11:03 AM UTC

below is the code for my wpf form
<Grid Width="Auto">
<syncfusion:SpreadsheetRibbon Height="95" HorizontalAlignment="Stretch" Margin="12,26,0,0" Name="SpreadsheetRibbon1" VerticalAlignment="Top" Width="Auto" />
<syncfusion:SpreadsheetControl Height="Auto" HorizontalAlignment="Stretch" Margin="12,119,0,0" Name="SpreadsheetControl1" VerticalAlignment="Stretch" Width="Auto" />

and I have few vb forms, in that I placed the control for some opteration.

In ReportView form I displayed the result in the spreadsheet, I want to get the value of cell when user double click the cell.

If there is any samples plz let me know.


Thanks & Regards,

Abraham. P

Pannir Selvam S [Syncfusion]
Replied On May 16, 2013 01:31 PM UTC

Hi Abraham,


Thanks for using Syncfusion product.


When double clicks on the cell, you can get the cellvalue by handling the CellClick event of GridControl like in the below code snippet.


Code Snippet[C#]:

this.spreadSheetControl.WorkBookLoaded += spreadSheetControl_WorkBookLoaded;


void spreadSheetControl_WorkBookLoaded(object sender, Syncfusion.Windows.Controls.Spreadsheet.WorkbookLoadedEventArgs args)


    foreach (var grid in args.GridCollection)


        grid.CellClick += new GridCellClickEventHandler(grid_CellClick);



void grid_CellClick(object sender, GridCellClickEventArgs e)


    var grid = sender as GridControl;

    if (e.ClickCount == 2)


        var cellValue = grid.CurrentCell.Renderer.CurrentStyle.CellValue;






We have prepared a sample based on this and you can find the sample from the below location.


Please let us know if you have any other queries.




Spreadsheet Demo_3d26e475.zip

Replied On February 10, 2018 09:39 PM UTC

I agree to the privacy policy and terms of service.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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