giovedì 22 gennaio 2009
Setting focus to a Filtering cell in WinGrid - Infragistics Forums
Setting focus to a Filtering cell in WinGrid - Infragistics Forums: "
D: I need to be able to set the focus to a Filtering cell when the form activates for the first time or programmatically.
For example, I have a list of products and when the user shows the list, the first cell that is activated and focused should be the cell where the user can type a product name and search to filter the list. So the user does not need to move the cursor by the mouse!
R:Here's one way to do it:
bool hasActivated = false;
private void Form1_Activated(object sender, EventArgs e)
{
if (this.hasActivated)
return;
this.hasActivated = true;
this.ultraGrid1.Rows.FilterRow.Cells['String 1'].Activate();
this.ultraGrid1.PerformAction(UltraGridAction.EnterEditMode);
}"
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento