修改DataGridViewTempDiff_CellDoubleClick方法,在只读模式下禁止修改颜色列
This commit is contained in:
@@ -611,8 +611,8 @@ namespace JoyD.Windows.CS
|
|||||||
{
|
{
|
||||||
dataGridViewTempDiff.BeginEdit(true);
|
dataGridViewTempDiff.BeginEdit(true);
|
||||||
}
|
}
|
||||||
// 处理颜色列双击 - 双击时打开颜色选择对话框
|
// 处理颜色列双击 - 双击时打开颜色选择对话框,但仅在非只读模式下
|
||||||
else if (e.ColumnIndex == dataGridViewTempDiff.Columns["colorColumn"].Index)
|
else if (e.ColumnIndex == dataGridViewTempDiff.Columns["colorColumn"].Index && !dataGridViewTempDiff.ReadOnly)
|
||||||
{
|
{
|
||||||
using (ColorDialog colorDialog = new ColorDialog())
|
using (ColorDialog colorDialog = new ColorDialog())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user