作成日: 2019/06/27 最終更新日: 2019/06/27
文書種別
使用方法
詳細
グリッドビューにおいて、行ヘッダのドラッグ&ドロップによる行移動を禁止するには、グリッドビューで内部的に使用されているC1FlexGridを取得し、そのAllowDraggingプロパティを「None」に設定します。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
Imports C1.Win.C1FlexGrid
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim fg As C1FlexGrid = CType(C1GanttView1.Controls(2), C1FlexGrid)
fg.AllowDragging = AllowDraggingEnum.None
End Sub
End Class
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim fg As C1FlexGrid = CType(C1GanttView1.Controls(2), C1FlexGrid)
fg.AllowDragging = AllowDraggingEnum.None
End Sub
End Class
◎サンプルコード(C#)
using C1.Win.C1FlexGrid;
namespace prj_C1GanttView
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
C1FlexGrid fg = (C1FlexGrid)c1GanttView1.Controls[2];
fg.AllowDragging = AllowDraggingEnum.None;
}
}
}
namespace prj_C1GanttView
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
C1FlexGrid fg = (C1FlexGrid)c1GanttView1.Controls[2];
fg.AllowDragging = AllowDraggingEnum.None;
}
}
}
旧文書番号
84124