K
K
KriptoAnalytic2018-01-19 10:25:56
WPF
KriptoAnalytic, 2018-01-19 10:25:56

How to import part of a page into excel or google sheets?

Hello!
Please help me set up a permanent upload of this data 5a619d490e579276725962.pngfrom the site https://www.bitfinex.com/ to a spreadsheet (Google Sheets or MS Excel). Tried in G.Sheets importhtml but it's not a list or a table. In Excel I tried Data - From the Internet, the necessary part was also not unloaded

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Space Purr, 2019-11-05
@Anton_repr

DataTable Table{get; set;}
DataAdapter dataAdapter;

private void DeleteMethod(object obj)
{

    var indexDataTable= //получаете здесь индекс из колонки "индекс"(например) выбранной строки
    var indexDataGridRow = //тут индекс самой строки, чтобы удалить ее из DataTable, либо вообще DataTable заново получать

    using (SqlCommand cmd = new SqlCommand())
    {
        cmd.Connection = new SqlConnection(connectionString);
        cmd.CommandText = "DELETE FROM YourTableName where id=" + indexDataTable;

        cmd.Connection.Open();
        cmd.ExecuteNonQuery();
        cmd.Connection.Close();
    }

    Table.Rows[indexDataGridRow].Delete();
    Table.AcceptChanges();
    dataAdapter.Update(Table);
}

A
Anton Kiselyov, 2018-01-19
@zamboga

www.planetaexcel.ru/techniques/13/129

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question