Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Refresh() Method
Message
De
08/07/2004 10:27:50
 
 
À
08/07/2004 10:23:27
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00921607
Message ID:
00921986
Vues:
13
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);
	}

}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform