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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Curious Object Model

Thread ID:

Created:

Updated:

Platform:

Replies:

6403 Aug 12,2003 01:27 AM UTC Aug 12,2003 05:10 AM UTC Windows Forms 1
loading
Tags: GridControl
ERobishaw
Asked On August 12, 2003 01:27 AM UTC

I'm curious: Why does the grid.CurrentCell property not return the same reference as grids indexer. Seems like in nearly every event, I've got to reference grid[grid.CurrentCell.RowIndex, grid.CurrentCell.ColIndex] I can easly get around this by inheriting the grid, and making my own CurrentCell2 property, or something, but I was curious as to why there's a difference to begin with? Thanks Eric

Administrator [Syncfusion]
Replied On August 12, 2003 05:10 AM UTC

There can only be one CurrentCell. What value do you associate with it? The 'old' style which you reference above, or the 'new' value that might be actively being edited in the CurrentCell.Renderer. In a lot of events, it is CurrentCell.Renderer.ControlText that is of interest, and not grid[grid.CurrentCell.RowIndex, grid.CurrentCell.ColIndex]. Keeping a clear division between these values seems reasonable.

CONFIRMATION

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.

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

;