Blog

Umut Yazılım - Logo Ürünlerinde ve Yazılımda 20 yıllık tecrübe..

Dataset içinde arama yapma

private void textBox5_TextChanged(object sender, EventArgs e){DataView dv = ds.Tables[0].DefaultView;dv.RowFilter = “Ad Like ‘”+textBox5.Text+”%’”;//dv.RowFilter = string.Format(“Ad LIKE ‘{0}%’”, textBox5.Text);dataGridView1.DataSource = dv;}

Devexpress radiobox seçilen

string secilen = radioyillar.Properties.Items[radioyillar.SelectedIndex].Description;

Devexpress kontrolleri boşaltma

foreach (Control control in this.Controls[0].Controls){if ((devXtextControl = control as TextEdit) != null){// do something with devXtextControlMessagebox.Show(devXtextControl.Name);}}

Dosya okuma

SqlCommand cmd = new SqlCommand();SqlDataAdapter da = new SqlDataAdapter(cmd);cmd.Connection = Mainform.baglan;

Form 2 den form 1 refresh

Kullaniciler f1 = (Kullaniciler)Application.OpenForms[“Kullaniciler”];f1.DataGetir(); // form 1 deki methodthis.Close();

Form 2 den form 1 textbox data aktarma

KullaniciEkle kekle = (KullaniciEkle)Application.OpenForms[“KullaniciEkle”];kekle.txtdepartman.Text = gridView1.GetFocusedRowCellValue(“DEPARTMAN”).ToString();kekle.lbldepid.Text = gridView1.GetFocusedRowCellValue(“ID”).ToString();