Пример #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            List <object> list = new List <object>();// = new List<T>();
            string        str  = client.CountPlayerGames();

            string[] sArr = str.Split('^');
            foreach (string s in sArr)
            {
                string[] sa = s.Split(' ');
                var      g  = new { Id = sa[0], Name = sa[2], Count = sa[1] };
                list.Add(g);
                GridView1.DataSource = list;
                GridView1.DataBind();
            }
        }