Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/uy/public_html/wp-includes/functions.php on line 6121
C# CheckedListBox İşlemleri – Umut Yazılım - Ümit AYDIN

C# CheckedListBox İşlemleri

C# CheckedListBox İşlemleri

SqlClass.dsGenel = SqlClass.GetDataset(“SELECT ID,ADI FROM [dbo].[CARI_GRUBU]”, “CARI_GRUBU”, “local”);
for (int i = 0; i < SqlClass.dsGenel.Tables[“CARI_GRUBU”].Rows.Count; i++)
{
this.chcgrubu.Items.Add(SqlClass.dsGenel.Tables[“CARI_GRUBU”].Rows[i][“ADI”].ToString());
}

string sqlCumle = “SELECT [CARIID] ,[CARITUR] FROM [CRM].[dbo].[CARI_KATEGORI] where TRCODE=1 AND CARIID=” + id + “”;
DataTable dt = SqlClass.GetDataTable(sqlCumle, “local”);
foreach (DataRow dr in dt.Rows)
{
string gelen = dr[1].ToString();
for (int i = 0; i < chcgrubu.Items.Count; i++)
{
if (chcgrubu.Items[i].ToString() == gelen.ToString())
{
chcgrubu.SetItemChecked(i, true);
}
}
}

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir