Simple data binding with Asp.net GridviewControl in c# Webform

preview_player
Показать описание
This is the shortest program to bind data from a Table to the c# Gridview control
Рекомендации по теме
Комментарии
Автор

SqlConnection cons = new
SqlDataAdapter da = new SqlDataAdapter("select * from Geolocation", cons);
DataTable dt = new DataTable();
cons.Open();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
cons.Close();

fired_developer
visit shbcf.ru