Page 1 of 2

DataTable to DataSet problem

Posted: Fri 26 May 2006 06:11
by Oufti
Hello,

I filled in a "CoreLab.MySql.MySqlDataTable dTable". There are some records in, I see them, I bind to a textbox. But when I create de DataSet with dTable.DataSet this one is empty.

It's not normal I think.

What's happen ?

Thanks,

Posted: Fri 26 May 2006 06:30
by Alexey
Please send us a piece of your code where said behaviour occurs.

Posted: Fri 26 May 2006 06:36
by Oufti
Alexey wrote:Please send us a piece of your code where said behaviour occurs.
Well, not easy to send a piece of code of a full project .....

thanks,

Posted: Fri 26 May 2006 06:46
by Alexey
If it's easier to send the full project, please do.

Posted: Fri 26 May 2006 06:50
by Oufti
Alexey wrote:If it's easier to send the full project, please do.
Not possible, I use third party control.

I'll try to do make a blank projet to reproduce this potential problem.

Thanks,

Posted: Fri 26 May 2006 06:51
by Oufti
[quote="Alexey"] to send .... [quote]

Is there an email for that ?

Thanks,

Posted: Fri 26 May 2006 07:11
by Alexey
Provided in your registration letter. Or in the readme file.

Posted: Fri 26 May 2006 07:23
by Oufti
Alexey wrote:Provided in your registration letter. Or in the readme file.
Email, with project (zipped : 36k) sent, subject :
"No DataSet return form DataTable (CrLab)"

thanks,

Posted: Fri 26 May 2006 07:31
by Alexey
OK. I will be looking forward to its redirection to my address.

Posted: Fri 26 May 2006 07:33
by Oufti
Alexey wrote:OK. I will be looking forward to its redirection to my address.
If you can check quick if it's my fault or yours.

Thanks,

Posted: Fri 26 May 2006 08:11
by Oufti
Alexey wrote:OK. I will be looking forward to its redirection to my address.
Received on your private email ? Sometimes, I ahev trouble with my ISP then ....

Thanks,

Posted: Fri 26 May 2006 08:19
by Alexey
Try to use the following code instead of yours:

Code: Select all

      da.Fill(ds);
      textBox1.DataBindings.Add("text", ds.Tables[0], "CLIE_NOM");
      comboBox1.DataSource = ds.Tables[0];
      comboBox1.DisplayMember = "CLIE_NOM";

Posted: Fri 26 May 2006 09:00
by Oufti
Alexey wrote:Try to use the following code instead of yours:
That's work.

But is not normal DataTable.DataSet return null ?

Thanks,

Posted: Fri 26 May 2006 09:08
by Alexey
It's quite normal. This is a designed behaviour. DataSet is not created automatically.

Posted: Fri 26 May 2006 10:05
by Oufti
Well, the problem now, I used a DataTable, but now with a dataset, I can't do an update command, that's not work.

thanks,