fguihen Posted November 23, 2005 Posted November 23, 2005 in a list box you can have a selected item, and a selected value. the items are shown in the list box and when you select one you can use the underlying selected value. eg. select "jimmy" in the list box, and the selected value property might be something like "cust_03". is this possible with cells in a datagrid? Quote
karimgarza Posted November 29, 2005 Posted November 29, 2005 in a list box you can have a selected item, and a selected value. the items are shown in the list box and when you select one you can use the underlying selected value. eg. select "jimmy" in the list box, and the selected value property might be something like "cust_03". is this possible with cells in a datagrid? if you are using a dataset you can get access to the original and current value using: System.Data.DataRowVersion.Current System.Data.DataRowVersion.Original MessageBox.Show("CurrentValue: " + dataSet11.Tables[0].Rows[dataGrid1.CurrentRowIndex][dataGrid1.CurrentCell.ColumnNumber,System.Data.DataRowVersion.Current].ToString()); MessageBox.Show("OriginalValue: " + dataSet11.Tables[0].Rows[dataGrid1.CurrentRowIndex][dataGrid1.CurrentCell.ColumnNumber,System.Data.DataRowVersion.Original].ToString()); I hope this helps, kmg Quote You're either a one or a zero. Alive or dead.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.