Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Refresh() Method
Message
From
08/07/2004 10:27:50
 
 
To
08/07/2004 10:23:27
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00921607
Message ID:
00921986
Views:
14
Yes, the user can sort on any column. There's a grid prop called 'allowsort'. Again, if you're allowing sorting, you have to make sure you're using the data table's defaultview anytime you're looking at rows.

As for highlighting the entire row, you can set up a handler on the mouseup event. Here's what I have in my grid base class.
this.MouseUp += new System.Windows.Forms.MouseEventHandler(ccGridMouseUp);


private void ccGridMouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
	System.Drawing.Point pt = new Point(e.X,e.Y);
	DataGrid.HitTestInfo hti = this.HitTest(pt);
	if(hti.Type == DataGrid.HitTestType.Cell)
	{
		this.CurrentCell = new DataGridCell(hti.Row, hti.Column);
		this.Select(hti.Row);
	}

}
Previous
Reply
Map
View

Click here to load this message in the networking platform