Click here to Skip to main content
15,917,060 members
Home / Discussions / C#
   

C#

 
QuestionConversion of legacy COBOL Pin
busyone131-Oct-07 11:40
busyone131-Oct-07 11:40 
AnswerRe: Conversion of legacy COBOL Pin
Luc Pattyn31-Oct-07 12:15
sitebuilderLuc Pattyn31-Oct-07 12:15 
AnswerRe: Conversion of legacy COBOL Pin
Paul Conrad31-Oct-07 13:55
professionalPaul Conrad31-Oct-07 13:55 
QuestionFormat Strings Pin
mehrdadc4831-Oct-07 10:24
mehrdadc4831-Oct-07 10:24 
AnswerRe: Format Strings Pin
pmarfleet31-Oct-07 10:29
pmarfleet31-Oct-07 10:29 
AnswerRe: Format Strings Pin
Anthony Mushrow31-Oct-07 10:46
professionalAnthony Mushrow31-Oct-07 10:46 
AnswerRe: Format Strings Pin
Luc Pattyn31-Oct-07 11:37
sitebuilderLuc Pattyn31-Oct-07 11:37 
QuestionBinding with BindingSource Pin
~~~Johnny~~~31-Oct-07 10:18
~~~Johnny~~~31-Oct-07 10:18 
I have a strnge situation thta I just can't understand, any help or leads would be appreciated

In my data layer I create BindingSource objects:

public abstract class SimpleObjects : System.Data.DataTable
{
protected BindingSource binding = new BindingSource();

protected void Init()
{
sqlAdap.SelectCommand = selectCommand;
sqlAdap.TableMappings.Add(tableMapping);
sqlAdap.FillSchema(this, SchemaType.Mapped);
binding.DataSource = this;
}
public BindingSource Binding
{
get { return binding; }
}
}

I make the BindingSource (binding) object available as a property for all my SimpleObjects for forms to use. Wrks well in most cases but my problem is sometimes the binding goes berzerk when I add DataRows to certain SimpleObjects and it seems to happen when you add rows to child Tables. What happens most of the time is a DataGridView showing a child object will show a row in blue but if I ask the currently binded Object to the BindingSource, it returns me usually the first row. This definitelly happens only if a DataRow was added. Not sure What is happenning and not sure what to do. Any help would be greatly appreciated.


QuestionFinding column names of a dataset?? Pin
Goalie3531-Oct-07 10:15
Goalie3531-Oct-07 10:15 
AnswerRe: Finding column names of a dataset?? Pin
pmarfleet31-Oct-07 10:25
pmarfleet31-Oct-07 10:25 
Questiontabcontrol Pin
8213001231-Oct-07 9:55
8213001231-Oct-07 9:55 
AnswerRe: tabcontrol Pin
Hesham Amin31-Oct-07 11:36
Hesham Amin31-Oct-07 11:36 
QuestionApplying Object values to another object dynamically Pin
shwaguy31-Oct-07 9:30
shwaguy31-Oct-07 9:30 
AnswerRe: Applying Object values to another object dynamically Pin
eggsovereasy31-Oct-07 10:30
eggsovereasy31-Oct-07 10:30 
QuestionDebug Application Plug-in Pin
CJ131-Oct-07 8:42
professionalCJ131-Oct-07 8:42 
AnswerRe: Debug Application Plug-in Pin
Pete O'Hanlon31-Oct-07 11:31
mvePete O'Hanlon31-Oct-07 11:31 
AnswerRe: Debug Application Plug-in Pin
Pete O'Hanlon31-Oct-07 11:40
mvePete O'Hanlon31-Oct-07 11:40 
GeneralRe: Debug Application Plug-in Pin
CJ11-Nov-07 4:47
professionalCJ11-Nov-07 4:47 
Questionarraylist as datagrid source [modified] Pin
The Onslaught31-Oct-07 8:20
The Onslaught31-Oct-07 8:20 
AnswerRe: arraylist as datagrid source Pin
eggsovereasy31-Oct-07 9:00
eggsovereasy31-Oct-07 9:00 
GeneralRe: arraylist as datagrid source Pin
The Onslaught1-Nov-07 6:48
The Onslaught1-Nov-07 6:48 
QuestionGuarantee MainForm Focus on Startup Pin
Sukhjinder_K31-Oct-07 8:19
Sukhjinder_K31-Oct-07 8:19 
AnswerRe: Guarantee MainForm Focus on Startup Pin
Judah Gabriel Himango31-Oct-07 8:19
sponsorJudah Gabriel Himango31-Oct-07 8:19 
Questionhow to turn a datatabel on sql interrogation ? Pin
eraydeniz31-Oct-07 8:04
eraydeniz31-Oct-07 8:04 
AnswerRe: how to turn a datatabel on sql interrogation ? Pin
pmarfleet31-Oct-07 8:20
pmarfleet31-Oct-07 8:20 

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.