🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / C# RMOS / gridview de seçili olan column u cell i kopyalamak hücre kopyalama

1-) C# RMOS - gridview de seçili olan column u cell i kopyalamak hücre kopyalama

 

 private void gridViewTrendyolSiparis_KeyDown(object sender, KeyEventArgs e)

        {

            hucreKopyala(gridControlTrendyolSiparis, e);

        }

 

        public void hucreKopyala(GridControl gridControl, KeyEventArgs e)

        {

            try

            {

                if (e.Control && e.KeyCode == Keys.C)

                {

                    GridView view = gridControl.FocusedView as GridView;

                    Clipboard.SetText(view.GetFocusedDisplayText());

                    e.Handled = true;

                    RHMesaj.alertMesaj("\"" + view.GetFocusedDisplayText() + "\" KOPYALANDI");

                }

            }

            catch (Exception ex)

            {

                RHMesaj.MyMessageError(MyClass, "hucreKopyala", "", ex);

            }

        }

 

 

2-) DİĞER

 

 private void btnKopyala_Click(object sender, EventArgs e)

        {

            try

            {

                string kopy = gridView_files.GetFocusedDisplayText();

                Clipboard.SetText(kopy);

                RHMesaj.alertMesaj("\"" + kopy + "\" KOPYALANDI");

            }

            catch (Exception ex)

            {

                RHMesaj.MyMessageError(MyClass, "btnKopyala_Click", "", ex);

            }

 

        }

 2022 Ağustos 29 Pazartesi
 651