Re: Finding selected row in a bound control's DataTable

Jay Ayliff <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
Hi Ian,

Thanks for the answer to that one. For the archives, the VB.Net code I am
using is this:

        Dim DRV As DataRowView =
Me.BindingContext(dgrdMain.DataSource).Current
        Debug.WriteLine("SN = " & DRV("System Number").ToString & " VNUM =
" & DRV("Visit Number").ToString)

One wonders why they gave us a DatarowView object when a DataRow would have
done.

Many thanks,

Jay Ayliff
Stalis Ltd

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.