作成日: 2015/05/13 最終更新日: 2015/05/13
文書種別
不具合
状況
回避方法あり
詳細
SelectionModeプロパティを「Row」にして以下の設定を行ったC1FlexGridで、選択行のクリック時にAllowEditingを「True」に設定し、SendKeys.Send("{F2}")を実行すると、行全体の選択が解除され、クリックしたセルのみが選択された状態になります。
・HighLightプロパティを「WithFocus」に設定
・AllowEditingプロパティの初期値を「False」に設定
・HighLightプロパティを「WithFocus」に設定
・AllowEditingプロパティの初期値を「False」に設定
回避方法
AllowEditingをTrueに設定するタイミングを、選択行のクリック時から他のイベント(例:BeforeMouseDownイベントなど)へ移動します。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
Private Sub C1FlexGrid1_BeforeMouseDown(sender As Object, e As C1.Win.C1FlexGrid.BeforeMouseDownEventArgs) Handles C1FlexGrid1.BeforeMouseDown
Me.C1FlexGrid1.AllowEditing = True
End Sub
Me.C1FlexGrid1.AllowEditing = True
End Sub
◎サンプルコード(C#)
private void C1FlexGrid1_BeforeMouseDown(object sender, C1.Win.C1FlexGrid.BeforeMouseDownEventArgs e)
{
//Me.C1FlexGrid1.AllowEditing = True
}
{
//Me.C1FlexGrid1.AllowEditing = True
}
旧文書番号
81278