C
Chad Z. Hower aka Kudzu
CurrentSelectedIndex of course wont work - user can resort rows by clicking
on a column title and then index of the grid won't reflect the same order as
the bound data table.
Currently the code is doing this:
CurrencyManager xCM = (CurrencyManager)BindingContext[dgrdVendors.DataSource,
dgrdVendors.DataMember];
DataRowView xDRV = (DataRowView)xCM.Current;
_Vendor = (AdminWS.VendorListDS.VendorRow)xDRV.Row;
Just to get the matching row in the datatable for the currently selected row
in the datagrid. Is there an easier / shorter way I've overlooked?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
on a column title and then index of the grid won't reflect the same order as
the bound data table.
Currently the code is doing this:
CurrencyManager xCM = (CurrencyManager)BindingContext[dgrdVendors.DataSource,
dgrdVendors.DataMember];
DataRowView xDRV = (DataRowView)xCM.Current;
_Vendor = (AdminWS.VendorListDS.VendorRow)xDRV.Row;
Just to get the matching row in the datatable for the currently selected row
in the datagrid. Is there an easier / shorter way I've overlooked?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/