Пример #1
0
        private void gridControl2_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            string      fkFirma = "1";
            GridHitInfo ghi     = gridView2.CalcHitInfo(e.Location);

            if (ghi.Column == null)
            {
                return;
            }
            if (ghi.RowHandle < 0)
            {
                return;
            }
            DataRow dr = gridView2.GetDataRow(ghi.RowHandle);

            if (ghi.Column.FieldName == "StokAdi")
            {
                if (dr["pkStokKarti"].ToString() == "")
                {
                    return;
                }
                frmSatisUrunBazindaDetay SatisUrunBazindaDetay = new frmSatisUrunBazindaDetay(fkFirma, "", "");
                SatisUrunBazindaDetay.Tag = "3";
                SatisUrunBazindaDetay.pkStokKarti.Text = dr["pkStokKarti"].ToString();
                SatisUrunBazindaDetay.ShowDialog();
            }
        }
Пример #2
0
        private void gridView2_DoubleClick(object sender, EventArgs e)
        {
            if (gridView2.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow dr = gridView2.GetDataRow(gridView2.FocusedRowHandle);
            frmSatisUrunBazindaDetay StokTekSatislari = new frmSatisUrunBazindaDetay("0", "", "");

            StokTekSatislari.Tag = "1";
            StokTekSatislari.pkStokKarti.Text   = dr["pkStokKarti"].ToString();
            StokTekSatislari.ilktarih.EditValue = ilktarih.EditValue;
            StokTekSatislari.sontarih.EditValue = sontarih.EditValue;
            StokTekSatislari.ShowDialog();
        }