public static void DataGridEnterGridForGetdateByID(DevComponents.DotNetBar.Controls.DataGridViewX Grid, Vitl vitl, List <Team> Teamlest, List <Couress> coureslist) { string listtamestring = ""; string listtcoures = ""; foreach (Team item in Teamlest) { listtamestring += " + " + NameTeam.NameTeamStatic[ClassDataGridViewDo.RetunIndexByIdSech(item.id_NameTeam_Ta, NameTeam.NameTeamStatic)].nameOftame; } foreach (Couress item in coureslist) { listtcoures += " + " + NameOfCouress.NameOfCouresslist[ClassDataGridViewDo.RetunIndexByIdSech(item.id_NameOfCouress, NameOfCouress.NameOfCouresslist)].Decrption; } if (coureslist.Count != 0) { listtcoures = listtcoures.Remove(0, 2); } if (Teamlest.Count != 0) { listtamestring = listtamestring.Remove(0, 2); } Grid.Rows.Add( vitl.id.ToString() , ClassConvert.ConvNonullTostring(vitl.first_name) + " " + ClassConvert.ConvNonullTostring(vitl.Last_name) , ClassConvert.ConvNonullTostring(vitl.first_name) , ClassConvert.ConvNonullTostring(vitl.Last_name) , ClassConvert.ConvNonullTostring(vitl.Father_name) , ClassConvert.ConvNonullTostring(vitl.Mather_name) , ClassConvert.ConvNonullTostring(ClassConvert.ConvToIdNational(vitl.natiol_id)) , vitl.Gender == false ? "ذكر" : vitl.Gender == true ? "إنثى" : "" , ClassConvert.ConvNonullTostring(vitl.where_birth) , vitl.data_barthday.ToShortDateString() , ClassConvert.ConvNonullTostring(vitl.Hanei_whare) , ClassConvert.ConvNonullTostring(vitl.Hanei_whare1) , ClassConvert.ConvNonullTostring(vitl.adderas) , ClassConvert.ConvNonullTostring(vitl.e_mail) , ClassConvert.Stutes_Jtma3Tostring(vitl.Stutes_Jtma3, vitl.Gender) , vitl.Phone_Ground.ToString() , vitl.Phone_Mobile1.ToString() , vitl.Phone_Mobile2.ToString() , ClassConvert.ConvNonullTostring(vitl.Facebook) , ClassConvert.ConvNonullTostring(vitl.Twiter) , vitl.whatsApp.ToString() , vitl.viper.ToString() , ClassConvert.ConvNonullTostring(vitl.study) , ClassConvert.yearstudyToString(vitl.yearstudy) , vitl.Id_course.ToString() , ClassConvert.ConvNonullTostring(vitl.Id_course_Ware) , vitl.data_regs.ToShortDateString() , ClassConvert.ConvStringBoloed(vitl.Boold_id) , ClassConvert.ConvNonullTostring(vitl.Nkname) , ClassConvert.ConvNonullTostring(vitl.nameEnglish) , ClassConvert.ConvSizeToString(vitl.Z1) , vitl.z2.ToString() , ClassConvert.ConvSizeToString(vitl.z3) , listtamestring , listtcoures ); }