How can I identify the row index to which a particular data row belongs to,
in a data Table.
Below given is the code snippet reflecting requirement,


        arrDataColumns = dtDataTable.PrimaryKey;
        object [] arrSearchValues = new object [arrDataColumns.Count];
        for ( int iDataColumnCounter = 0 ; iDataColumnCounter <
arrDataColumns.Count; iDataColumnCounter++)
        {
                arrSearchValues[iDataColumnCounter] = " Some Values ";
        }

        DataRow drDataRow = dtDataTable.Find ( arrSearchValues );

        Now is there any way I can find at what index drDataRow exist in
dtDataTable.


ashwini
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to