Where can I find a discussion of databinding and windows forms
Take a look at the Microsoft KB article, INFO: Roadmap for Windows Forms Data Binding (Q313482). This article gets you started. It also lists other Microsoft KB articles that have to do with using the Windows Forms DataGrid and databinding.
I want to do sort of a database join of two tables. How can I use data from two DataTables in a single DataGrid
Take a look at this Microsoft KB article, HOW TO: Extend the Windows Form DataGridTextBoxColumn to Display Data From Other Tables (C#,VB). It subclasses a DataGridColumnStyle and overrides GetColumnValueAtRow, Commit and ReadOnly to implement this behavior.
I want to display negative values with a CR suffix, instead of a minus sign. How can I perform custom formatting on the cells in my datagrid
Take a look at this Microsoft KB article, HOW TO: Extend the Windows Form DataGridTextBoxColumn Control to Custom-Format Data (Q318581). It subclasses a DataGridColumnStyle and overrides both GetColumnValueAtRow and Commit to implement this behavior.
I have a long loop. How can I make my application continue to process events while it is executing this loop
Call the static Application.DoEvents() method in your loop.
When I try to bind two comboboxes to the same datatable, both boxes show the same values, changing one changes the other. How do I make them have distinct values
Make sure the two comboboxes use different BindngContext objects. BindingContext bc = new BindingContext(); this.comboBox1.BindingContext = bc; comboBox1.DataSource = _dataSet.Tables['orders']; comboBox1.ValueMember = 'CustomerID'; comboBox1.DisplayMember = 'CustomerID'; bc = new BindingContext(); this.comboBox2.BindingContext = bc; comboBox2.DataSource = _dataSet.Tables['orders']; comboBox2.ValueMember = 'CustomerID'; comboBox2.DisplayMember = 'CustomerID';