• 18-04-2023, 21:35:57
    #1
    Merhabalar vb ile yaptım çalışıyor object ile veri aktarımı yapıyorum yeni versiyon desteklemiyor vb yi
    Alttaki kodları c# göre nasıl yaparım
    Datagrid den gelen verileri for alıp
    Dim yerine ne kullanmam gerekli


    Dim connection As String = ConfigurationManager.ConnectionStrings("mysql").Co nnectionString

    Dim ds As New DataSet
    Dim sa As New MySqlDataAdapter("SELECT * FROM oc_order where aktarma = 0 ", connection)
    sa.Fill(ds)
    DataGridView2.DataSource = ds.Tables(0)
    DataGridView2.Refresh()
    DataGridView3.Refresh()

    For i = 0 To ds.Tables(0).Rows.Count -1

    Dim order_id = Replace(ds.Tables(0).Rows(i).Item("order_id"), " ", "")
    Dim gelen = order_id



    order.DataFields.FieldByName("orderid").Value =GELEN
  • 18-04-2023, 21:40:07
    #2
    string connection = ConfigurationManager.ConnectionStrings["mysql"].ConnectionString;
    DataSet ds = new DataSet(); MySqlDataAdapter sa = new MySqlDataAdapter("SELECT * FROM oc_order where aktarma = 0 ", connection); sa.Fill(ds); DataGridView2.DataSource = ds.Tables[0]; DataGridView2.Refresh(); DataGridView3.Refresh();
    for (int i = 0; i <= ds.Tables[0].Rows.Count -1; i++) {string order_id = ds.Tables[0].Rows[i]["order_id"].ToString().Replace(" ", ""); string gelen = order_id;
    order.DataFields.FieldByName("orderid").Value = GELEN;
    }
  • 18-04-2023, 21:41:59
    #3
    caht gp ile halledin bu işleri artık kimse uğraşmaz ben cevirtttirdim senin için
    string connection = ConfigurationManager.ConnectionStrings["mysql"].ConnectionString;
    DataSet ds = new DataSet(); MySqlDataAdapter sa = new MySqlDataAdapter("SELECT * FROM oc_order where aktarma = 0 ", connection); sa.Fill(ds); DataGridView2.DataSource = ds.Tables[0]; DataGridView2.Refresh(); DataGridView3.Refresh();
    for (int i = 0; i < ds.Tables[0].Rows.Count; i++) {    string order_id = ds.Tables[0].Rows[i]["order_id"].ToString().Replace(" ", "");    string gelen = order_id; }
  • 18-04-2023, 21:47:27
    #4
    Çok teşekkür ederim cevap veren arkadaşlara
  • 18-04-2023, 21:49:35
    #5
    caht gp
    Nasıl yapılıyor ne yazman gerekli örnek olarak

    aspnetturkiye adlı üyeden alıntı: mesajı görüntüle
    caht gp ile halledin bu işleri artık kimse uğraşmaz ben cevirtttirdim senin için
    string connection = ConfigurationManager.ConnectionStrings["mysql"].ConnectionString;
    DataSet ds = new DataSet(); MySqlDataAdapter sa = new MySqlDataAdapter("SELECT * FROM oc_order where aktarma = 0 ", connection); sa.Fill(ds); DataGridView2.DataSource = ds.Tables[0]; DataGridView2.Refresh(); DataGridView3.Refresh();
    for (int i = 0; i < ds.Tables[0].Rows.Count; i++) {    string order_id = ds.Tables[0].Rows[i]["order_id"].ToString().Replace(" ", "");    string gelen = order_id; }
  • 18-04-2023, 23:53:04
    #6
    gucluserkan adlı üyeden alıntı: mesajı görüntüle
    caht gp
    Nasıl yapılıyor ne yazman gerekli örnek olarak
    buraya girip hesap aç ve konuya attıgın codu yaz bu kadar