Here is a sample that can help you
You can use the DataGrid's double-click event and its HitTest method to
catch a double click on a header.
private void dataGrid1_Doubl eClick(object sender, System.EventArg s e)
{
System.Drawing. Point pt = dataGrid1.Point ToClient(Cursor .Position);
DataGrid.HitTes tInfo hti = dataGrid1.HitTe st(pt);
if(hti.Type == DataGrid.HitTes tType.ColumnHea der)
{
MessageBox.Show ("double clicked clicked column header " +
hti.Column.ToSt ring());
}
}
Fernando Hunth (fh****@hotmail .com)
"Manny Chohan" wrote:
hi Guys,
i want to implement the double click functionality in datagrid. I am using
c#. can some one recomend a good article whihc shows you how to do it.
Thanks
Manny