We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cursor and header row

Hello, I would like to make the grid to behave like the standard ListView (SysListView32) in "Report" mode. There are two questions regarding this: #1 How can I get rid of the grid's "DragSelectionCursor" that is shown if the mouse cursor is moved over a cell's top or bottom border? #2 The listview's header fills up the space between the last column in the list and the right border of the list's client rectangle. Is there any chance to achieve this behaviour with the grid? Thanks in advance, Holger Persch

1 Reply

AD Administrator Syncfusion Team November 13, 2003 10:41 PM UTC

1) Turn off the OleDataSource flag in the ControllerOptions property of the grid. 2) Try handling QueryColWidth and explicitly set the last col's width there.
this.gridControl1.Model.QueryColWidth += new GridRowColSizeEventHandler(grid_QueryColWidth);

private void grid_QueryColWidth(object sender, GridRowColSizeEventArgs e)
	GridControl grid = this.gridControl1;
	if(e.Index == grid.Model.ColCount)
		e.Size = grid.ClientSize.Width - grid.Model.ColWidths.GetTotal(0, grid.Model.ColCount-1);
		e.Handled = true;

Live Chat Icon For mobile
Up arrow icon