تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
عمل كلاس لتعبئه كمبو بوكس داخل الداتا فيو
#7
اتفضل , انا غيرت بس ال DataTable علشان اجربه عندي.
هتعمل تمرير لاي Combo ف ال Grid 
ب الشكل ده 
PHP كود :
(DataGridViewComboBoxCell)dataGridView1.Rows[0].Cells[0



PHP كود :
  DB.FillComBobx((DataGridViewComboBoxCell)dataGridView1.Rows[0].Cells[0], "select ID,Char_Name from TabTest""ID""Char_Name"); 

PHP كود :
       // ------------------[تعبئة كمبو بوكس]-------------------
 
       public static void FillComBobx(DataGridViewComboBoxCell Cmdstring Sqlstring displayColstring valueCol)
 
       {
 
           SqlDataAdapter Da = new SqlDataAdapter(SqlCon);
 
           DataSet Ds = new DataSet();
 
           Da.Fill(Ds);
 
          
            Cmd
.DataSource Ds.Tables[0];
 
           Cmd.DisplayMember displayCol;
 
           Cmd.ValueMember valueCol;
 
    
        

الرد }}}
تم الشكر بواسطة: asemshahen5 , حريف برمجة


الردود في هذا الموضوع
RE: عمل كلاس لتعبئه كمبو بوكس داخل الداتا فيو - بواسطة Eng.Ahmed Amen - 10-07-19, 07:23 PM


التنقل السريع :


يقوم بقرائة الموضوع: