Private Sub AdvBandedGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles AdvBandedGridView1.KeyDown
If e.Control And e.KeyCode = Keys.C Then
Clipboard.SetDataObject(AdvBandedGridView1.GetFocusedRowCellValue(AdvBandedGridView1.FocusedColumn))
e.Handled = True
End If
End Subprivate void AdvBandedGridView1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.Control & e.KeyCode == Keys.C) {
Clipboard.SetDataObject(AdvBandedGridView1.GetFocusedRowCellValue(AdvBandedGridView1.FocusedColumn));
e.Handled = true;
}
}
optionSelection-MultiSelectMode = CellSelect;
然后Ctrl-c就可以了
DevExpress.Skins.Skin currentSkin;
currentSkin = DevExpress.Skins.CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
Color textColor = currentSkin.Colors.GetColor(DevExpress.Skins.CommonColors.WindowText);
Color highlightTextColor = currentSkin.Colors.GetColor(DevExpress.Skins.CommonColors.HighligthText);
Color selectColor = currentSkin.Colors.GetColor(DevExpress.Skins.CommonColors.Highlight);恩。。貌似复杂了哈