HA
haneefm
Syncfusion Team
April 5, 2007 06:11 PM UTC
Hi Jeugenides ,
This can be achieved by handling the MouseDown event of the Grid. In that event, you need to set the AllowSelectedRows property to false for the required row in a grid. You can use the following code snippet to achieve this.
private void gridControl1_MouseDown(object sender, MouseEventArgs e)
{
GridControl grid = sender as GridControl;
Point pt = new Point(e.X,e.Y);
int row,col;
if( grid.PointToRowCol( pt,out row,out col))
{
if( row == 4 && col == 0)
grid.AllowDragSelectedRows = false;
else
grid.AllowDragSelectedRows = true;
}
}
Best regards,
Haneef