C# Tutorial - How to Load selected columns data in DataGridView | FoxLearn

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 9

  • @raduluchian7008
    @raduluchian7008 2 года назад

    te rog pentru a simplifica lucrurile, ... poti face acest lucru cu o baza de date din Acces?
    Multumesc anticipat!

  • @haftomkahsay7902
    @haftomkahsay7902 5 лет назад

    thank you very much!!!!!!

    • @foxlearn
      @foxlearn  5 лет назад

      You're welcome. Thank you !

    • @haftomkahsay7902
      @haftomkahsay7902 5 лет назад

      @@foxlearn Sorry it doesn't work for me Could you Show me in other way or more clear way??? thanks more .Am Waiting your great legend code....

  • @mutahhirkhan
    @mutahhirkhan 4 года назад

    if i use this method to show selected rows... what modification would i do ?

  • @jagadeeshbarfa
    @jagadeeshbarfa 8 лет назад

    can i do the same using MYSQL,? because i have some errors logging in SQL SERVER..!!

    • @foxlearn
      @foxlearn  8 лет назад +1

      Hi, Yes you can do the same with mysql. thanks

  • @vasyafoonken5382
    @vasyafoonken5382 6 лет назад

    if table 1500 columns
    **********
    SqlConnection cn = new SqlConnection();
    SqlCommand cmd = new SqlCommand();
    SqlDataReader dr;
    public NastrGrid()
    {
    InitializeComponent();
    }
    private void loaddata ()
    {
    cmd.CommandText = "Select column_name FROM information_schema.columns WHERE table_name= 'You table' ORDER BY ordinal_position";
    cn.Open();
    dr = cmd.ExecuteReader();
    if (dr.HasRows)
    {
    while (dr.Read())
    {
    checkedListBox1.Items.Add(dr[0].ToString());
    }
    dr.Close();
    cn.Close();
    }
    }