Hii,
I have a grid and i want the data from my remote mysql. I have tested the connection but i am not aware as how to get the data in the grid.
Like this is my connection-
string connString = "Server=174.121.35.162;Database=funiks_phonebook;Uid=funiks_phonebook;Pwd=phonebook;Port = 3306;";
MySqlConnection conn = new MySqlConnection(connString);
MySqlCommand command = conn.CreateCommand();
command.CommandText = "select contactname,phno from phonebook";
Now i want to get these values in my grid, please advise, Please stretch it so that i can change the values and update the table as well.
It will be very helpful.
I have a grid and i want the data from my remote mysql. I have tested the connection but i am not aware as how to get the data in the grid.
Like this is my connection-
string connString = "Server=174.121.35.162;Database=funiks_phonebook;Uid=funiks_phonebook;Pwd=phonebook;Port = 3306;";
MySqlConnection conn = new MySqlConnection(connString);
MySqlCommand command = conn.CreateCommand();
command.CommandText = "select contactname,phno from phonebook";
Now i want to get these values in my grid, please advise, Please stretch it so that i can change the values and update the table as well.
It will be very helpful.