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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cursor and header row

Thread ID:





8592 Nov 13,2003 03:09 AM Nov 13,2003 05:41 PM Windows Forms 1
Tags: GridControl
Holger Persch
Asked On November 13, 2003 03:09 AM

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

Administrator [Syncfusion]
Replied On November 13, 2003 05:41 PM

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;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon