DataGridView

时间:2018-05-03 08:58:15

标签: c# json datagridview

我的应用程序使用如下列表:

async Task<object> GetBanktAsync(string path)
{
    HttpClient client = new HttpClient();
    HttpResponseMessage response = await client.GetAsync(path);
    object result;

    if (response.IsSuccessStatusCode)
    {
        result = response.Content.ReadAsAsync<object>().Result;
    }
    var deserializeObject = Newtonsoft.Json.JsonConvert.DeserializeObject<result>(resultString);
    dataGridViewBank.DataSource = deserializeObject;
}

使用GET方法在DataGridview中显示数据库中的库,但它不显示任何内容。为什么呢?

0 个答案:

没有答案