// oBinding is simply what the TextBox is bound to // Me.DataBindings.Item(0) in your example int nRow = this.BindingContext[this.oBinding.DataSource].Position; string field = this.oBinding.BindingMemberInfo.BindingField; DataTable table = null; if (this.oBinding.DataSource is DataView) { nRow = CommonFunctions.IndexOfRow((DataView)this.oBinding.DataSource, nRow); table = ((DataView)this.oBinding.DataSource).Table; } else if (this.oBinding.DataSource is DataTable) table = (DataTable)this.oBinding.DataSource;It appears that you're also talking about a sub-classed control, I hope I am correct in that assumption. Since your question appears to be about whatever this "cols" thing is, I'm not sure if the above helps or not.
>Me.DataBindings.Item(0).BindingMemberInfo.BindingField >>
>Dim o As DataColumn = cols(Me.DataBindings.Item(0).BindingMemberInfo.BindingField) >>