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.

Binder.NameToColIndex()

Thread ID:

Created:

Updated:

Platform:

Replies:

16991 Jul 28,2004 01:09 PM Jul 28,2004 06:25 PM Windows Forms 3
loading
Tags: GridControl
Scott Lundgren
Asked On July 28, 2004 01:09 PM

The code and detailed explanation are attached as grid_3164.zip. Summary: Binder.NameToColIndex() always returns -1, even when it seems clear that it should not. grid_3164.zip

Administrator [Syncfusion]
Replied On July 28, 2004 02:07 PM

I do not know why this is failing. The string has to be an exact match (case is significant). If you have the source code, you can use the Assembly Manager to build a debug version of our libraries, and then run your application and step into NameToColIndex to see exactly why it is failing. Or, if you can attach a sample project, we can do that here.

Scott Lundgren
Replied On July 28, 2004 03:57 PM

Your answer helped. The case sensitivity is the issue; NameToColIndex() is case-sensitive. However: gridobj.GridBoundColumns["NOTcaseSENSiTiVeCOLname"] returns a valid GridBoundColumn reference. So, it seems that the GridBoundColumn collection is not case sensitive, at least, when keying as shown. So, everything is resolved now. Thanks for the help. Out of curiousity - is there a reason for this behavior? >I do not know why this is failing. The string has to be an exact match (case is significant). > >If you have the source code, you can use the Assembly Manager to build a debug version of our libraries, and then run your application and step into NameToColIndex to see exactly why it is failing. > >Or, if you can attach a sample project, we can do that here.

Administrator [Syncfusion]
Replied On July 28, 2004 06:25 PM

NameToColIndex does a loop with code checking for strict equality. The GridBoundColumn indexers must be using some list lookup code that is not case sensitive.

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.

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.

;