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

Curious Object Model

Thread ID:





6403 Aug 12,2003 01:27 AM UTC Aug 12,2003 05:10 AM UTC WinForms 1
Tags: GridControl
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.


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

Live Chat Icon For mobile
Live Chat Icon