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);
}
}