Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.Net.Sockets IPEndPoint Problem Pin
Richard MacCutchan4-Jun-12 1:05
mveRichard MacCutchan4-Jun-12 1:05 
AnswerRe: System.Net.Sockets IPEndPoint Problem Pin
Luc Pattyn4-Jun-12 4:14
sitebuilderLuc Pattyn4-Jun-12 4:14 
QuestionSaving data to SQL from dynamically made comboboxes... Pin
Vidor3-Jun-12 22:27
professionalVidor3-Jun-12 22:27 
AnswerRe: Saving data to SQL from dynamically made comboboxes... Pin
AmitGajjar4-Jun-12 2:06
professionalAmitGajjar4-Jun-12 2:06 
GeneralRe: Saving data to SQL from dynamically made comboboxes... Pin
Vidor4-Jun-12 5:00
professionalVidor4-Jun-12 5:00 
GeneralRe: Saving data to SQL from dynamically made comboboxes... Pin
AmitGajjar4-Jun-12 17:55
professionalAmitGajjar4-Jun-12 17:55 
SuggestionRe: Saving data to SQL from dynamically made comboboxes... Pin
Paul Conrad4-Jun-12 17:07
professionalPaul Conrad4-Jun-12 17:07 
Questiondatabinding in the constuctor not working properly Pin
matleeds3-Jun-12 22:02
matleeds3-Jun-12 22:02 
Hi,

I have a modal form where in the consturctor I grab some data from a text file and create a dataset/datatable that holds the data and binds it to the datagridview control on the form. When the form is displayed, the dataset/datatable isn't displayed but when I debug through the code and get to line 3 it tells me that the datasource has bound to the dataset/datatable and I can view the datasource in the visualizer. The debugger steps through to line 4 then the form is displayed...but without the dataset/datatable.

I have added at design time the datagridview with two columns corresponding to the columns from the text file and this is what is displayed and not the dataset I've bound it too in the constructor.

Is there an issue with binding in the constructor

cheers


C#
public frmAdjustments()
        {
            InitializeComponent();

 line2           _data = BuildDataSet  ("AdjustmentTypes.txt","AdjustmentsTable","|");

 line3           dataGridView1.DataSource = _data;

            //dataGridView1.Refresh();

            //GetAdjustmentsTypesDb();
        }


private void button1_Click(object sender, EventArgs e)
        {
line1       frmAdjustments frmA = new frmAdjustments();
line4       frmA.ShowDialog();

        }   

Mat

AnswerRe: databinding in the constuctor not working properly Pin
matleeds3-Jun-12 22:57
matleeds3-Jun-12 22:57 
GeneralRe: databinding in the constuctor not working properly Pin
Luc Pattyn4-Jun-12 4:18
sitebuilderLuc Pattyn4-Jun-12 4:18 
AnswerRe: databinding in the constuctor not working properly Pin
mallikharjuna2214-Jun-12 21:20
mallikharjuna2214-Jun-12 21:20 
QuestionC# 2010 edit Pin
dcof3-Jun-12 18:08
dcof3-Jun-12 18:08 
AnswerRe: C# 2010 edit Pin
Richard MacCutchan3-Jun-12 22:09
mveRichard MacCutchan3-Jun-12 22:09 
AnswerRe: C# 2010 edit Pin
Eddy Vluggen4-Jun-12 3:30
professionalEddy Vluggen4-Jun-12 3:30 
Questionc# DataGridView EditMode and DeleteKey Pin
blissMaster3-Jun-12 15:25
blissMaster3-Jun-12 15:25 
AnswerRe: c# DataGridView EditMode and DeleteKey Pin
Abhinav S3-Jun-12 17:16
Abhinav S3-Jun-12 17:16 
Questionconvert part of a list to an array Pin
a.fatemeh3-Jun-12 7:18
a.fatemeh3-Jun-12 7:18 
AnswerRe: convert part of a list to an array Pin
Dave Kreskowiak3-Jun-12 7:30
mveDave Kreskowiak3-Jun-12 7:30 
GeneralRe: convert part of a list to an array Pin
VJ Reddy3-Jun-12 7:56
VJ Reddy3-Jun-12 7:56 
GeneralRe: convert part of a list to an array Pin
Luc Pattyn3-Jun-12 8:59
sitebuilderLuc Pattyn3-Jun-12 8:59 
GeneralRe: convert part of a list to an array Pin
VJ Reddy3-Jun-12 14:05
VJ Reddy3-Jun-12 14:05 
AnswerRe: convert part of a list to an array Pin
Richard Andrew x643-Jun-12 7:33
professionalRichard Andrew x643-Jun-12 7:33 
GeneralRe: convert part of a list to an array Pin
VJ Reddy3-Jun-12 7:57
VJ Reddy3-Jun-12 7:57 
GeneralRe: convert part of a list to an array Pin
Luc Pattyn3-Jun-12 9:00
sitebuilderLuc Pattyn3-Jun-12 9:00 
AnswerRe: convert part of a list to an array Pin
VJ Reddy3-Jun-12 7:53
VJ Reddy3-Jun-12 7:53 

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.