Click here to Skip to main content
15,921,531 members
Home / Discussions / C#
   

C#

 
GeneralQuestion on simple binding Pin
Brett Slaski30-Jun-04 4:26
Brett Slaski30-Jun-04 4:26 
GeneralRe: Question on simple binding Pin
Heath Stewart30-Jun-04 8:46
protectorHeath Stewart30-Jun-04 8:46 
GeneralRe: Question on simple binding Pin
Brett Slaski30-Jun-04 9:24
Brett Slaski30-Jun-04 9:24 
GeneralRe: Question on simple binding Pin
Heath Stewart30-Jun-04 18:08
protectorHeath Stewart30-Jun-04 18:08 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 2:44
Brett Slaski1-Jul-04 2:44 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 4:36
protectorHeath Stewart1-Jul-04 4:36 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 5:54
Brett Slaski1-Jul-04 5:54 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 17:48
protectorHeath Stewart1-Jul-04 17:48 
Again, take a look at the BindingContext property documentation in the .NET Framework SDK. It's ncessary that you bind properties to the same data source as the BindingContext.

For example, many people will bind a DataTable to a DataGrid (assign it to DataSource) instead of setting the DataSource property to the DataSet, and the table name (typed or not) as the DataMember name. If you then use specify a context like BindingContext[dataSet1.dataTable1], it will not work. A good way is to use BindingContext[dataGrid1.DataSource, dataGrid1.DataMember]. This will make sure that the binding contexts are the same and correct.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 3:08
Brett Slaski2-Jul-04 3:08 
GeneralRe: Question on simple binding Pin
Heath Stewart2-Jul-04 3:40
protectorHeath Stewart2-Jul-04 3:40 
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 9:25
Brett Slaski2-Jul-04 9:25 
GeneralOOP implemenation question Pin
mealnumberone30-Jun-04 2:27
mealnumberone30-Jun-04 2:27 
GeneralRe: OOP implemenation question Pin
Colin Angus Mackay30-Jun-04 3:15
Colin Angus Mackay30-Jun-04 3:15 
GeneralRe: OOP implemenation question Pin
mealnumberone30-Jun-04 7:13
mealnumberone30-Jun-04 7:13 
GeneralRe: OOP implemenation question Pin
Heath Stewart30-Jun-04 8:39
protectorHeath Stewart30-Jun-04 8:39 
GeneralMouseHover on toolbar button Pin
Member 114743230-Jun-04 1:52
Member 114743230-Jun-04 1:52 
GeneralRe: MouseHover on toolbar button Pin
Nick Parker30-Jun-04 3:06
protectorNick Parker30-Jun-04 3:06 
GeneralRe: MouseHover on toolbar button Pin
Heath Stewart30-Jun-04 3:55
protectorHeath Stewart30-Jun-04 3:55 
GeneralRe: MouseHover on toolbar button Pin
Nick Parker30-Jun-04 6:28
protectorNick Parker30-Jun-04 6:28 
GeneralRe: MouseHover on toolbar button Pin
Heath Stewart30-Jun-04 3:54
protectorHeath Stewart30-Jun-04 3:54 
Generalrefactoring plugin Pin
steven shingler30-Jun-04 1:40
steven shingler30-Jun-04 1:40 
GeneralRe: refactoring plugin Pin
Werdna30-Jun-04 5:49
Werdna30-Jun-04 5:49 
GeneralRe: refactoring plugin Pin
steven shingler30-Jun-04 5:55
steven shingler30-Jun-04 5:55 
GeneralRe: refactoring plugin Pin
Werdna30-Jun-04 6:07
Werdna30-Jun-04 6:07 
GeneralRe: refactoring plugin Pin
steven shingler30-Jun-04 12:40
steven shingler30-Jun-04 12:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.