Ticket S92221
Visible to All Users

Implement GridView.GetFocusedDataSourceRowIndex

created 17 years ago

Hello,

I often use the following code :

<code lang="cs>
gvLignes.GetDataSourceRowIndex(gvLignes.FocusedRowHandle)
</code>

I would like to have the GridView.GetFocusedDataSourceRowIndex method. It will be more readable and less error prone.
And it's pretty easy to add (I think)

Thanx for listening
Julien

Show previous comments (1)

    Hello,
    I understand that extention methos are a correct way to create such a functionnality.
    But I must admit that I don't understand that you don't provide this to all of your users. Can you explain to me why you rejected this suggestion ?
    TIA
    Julien

    Stan (DevExpress Support) 17 years ago

      Hello Julien,
      I thought that the solution I provided was enough to achieve the required feature and it was not necessary to overload our GridView class with additional methods. Other people will be able to find this suggestion with ease and use the same approach. However, if this solution doesn't meet your requirements, I'll accept this suggestion and we'll consider introducing this method in the future.
      Thanks,
      Stan.

      MF MF
      Mike Falcon (DevExpress) 16 years ago

        The following method has been added:
        ColumnView.GetFocusedDataSourceRowIndex();

        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.