Ticket T126769
Visible to All Users

ASPxSpreadsheet - How to change selection

created 11 years ago

How can I set the cell position to be Column 0, Row 0 on initial spreadsheet load?

Seems like the spreadsheet is still show the last cell that was clicked?

Thanks!

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Jason,
As far as I know, ASPxSpreadsheet initially has the [0,0] cell selected, see the video in the attachment. Would you please provide us with a project that demonstrates the issue, so we can research the described behavior? However, if you need to change a selected cell on the server side, you can do this by using the following code:

C#
ASPxSpreadsheet1.Document.Worksheets.ActiveWorksheet.Selection = ASPxSpreadsheet1.Document.Worksheets.ActiveWorksheet[0, 0];

Try this approach and let me know if it meets your requirements.

    Comments (1)

      Works perfect!  Thanks!

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.