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.
Up arrow icon