I think you just need to call dbgView.DataBind();
On Nov 14, 4:18 pm, "SigmaX"
<fyedernoggersnod... gmail.com> wrote:
> The code:
>
> ------
> string connectionString =
> "Server=" + db_server +
";" +
> "Database=" +
db_database + ";" +
> "User ID=" + db_uname +
";" +
> "Password=" + db_passwd
+ ";" +
> "Pooling=false;";
> MySqlConnection db_connection = new
> MySqlConnection(connectionString);
>
> string query = "SELECT * FROM " +
db_table + ";";
>
> MySqlDataAdapter db_adapter = new
MySqlDataAdapter(query,
> db_connection);
> DataSet db_data = new DataSet();
> try
> {
> db_adapter.Fill(db_data);
> }
> catch (Exception err)
> {
>
MessageBox.Show(err.Message.ToString());
> }
> dbgView.DataSource =
db_data.DefaultViewManager;
> db_connection.Close();
>
> ------
>
> Everything flows swell and executes. But my datagrid
(dbgView) still
> comesup empty.
>
> Any help?
>
> SigmaX
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups-beta.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---
|