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. Image for the cookie policy date

Get Spreadsheet selected cell and selected range

Is it possible to get a spreadsheet's selected cell and/or selected range. I cant seem to find a way.

Thanks

1 Reply

PA Ponraja A Syncfusion Team July 30, 2012 11:23 AM UTC

Hi Alex,
 
Thanks for using Syncfusion product.
 
You can get the select cells and selected ranges in the spreadsheet control by using the SelectedCells and SelectedRanges property in GridModel as show in the following code snippet.
 
[C#]
 
var selectedcell = Spreadsheet.GridProperties.ActiveSpreadsheetGrid.Model.SelectedCells;
var selectedrange = Spreadsheet.GridProperties.ActiveSpreadsheetGrid.Model.SelectedRanges;
 
Please let us know if you have any queries.
 
Regards,
Ponraja

Loader.
Live Chat Icon For mobile
Up arrow icon