GetCol() not returning the correct column

int realCol = source.GetCol(source.CurrentCell.ColIndex) - 1;

The above statement works fine as long as the user hasn't scrolled to the right, leaving 1 or more of the left-most columns hidden. In otherwords, if the left-most column isn't column 0, the above statement doesn't work.

Any ideas how to fix?

1 Reply

AD Administrator Syncfusion Team April 20, 2007 11:26 PM UTC

Here is the summary description for GridControlBase.GetCol.

Returns the absolute column index for a client column index.

CurrentCell.ColIndex is not a client column incex. It is an absolute index.

Exactly what value to you want to compute? If you just always use
CurrentCell.ColIndex - 1, does that always return teh value you want?

Loader.
Up arrow icon