1-) C# RMOS - gridview header double click false
private void gridView_DoubleClick(object sender, EventArgs e)
{
DXMouseEventArgs ea = e as DXMouseEventArgs;
GridView view = sender as GridView;
GridHitInfo info = view.CalcHitInfo(ea.Location);
if (info.InRow || info.InRowCell)
{
string colCaption = info.Column == null ? "N/A" : info.Column.GetCaption();
MessageBox.Show(string.Format("DoubleClick on row: {0}, column: {1}.", info.RowHandle, colCaption));
}
}
2-) ikinci yol
private void dgv_Video_DoubleClick(object sender, EventArgs e)
{
GridView view = sender as GridView;
GridHitInfo hi = view.CalcHitInfo(dgc_Video.PointToClient(MousePosition));
if (hi.InRow || hi.InRowCell)
{
//do something
}
}