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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cursor and header row

Thread ID:

Created:

Updated:

Platform:

Replies:

8592 Nov 13,2003 08:09 AM UTC Nov 13,2003 10:41 PM UTC WinForms 1
loading
Tags: GridControl
Holger Persch
Asked On November 13, 2003 08:09 AM UTC

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 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;
	}
} 

CONFIRMATION

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;