Hello!
Is there an event that allow me to get the value of a cell when a double click is done?
I was trying to find a DoubleClickCell event but it dosen't exists, the only I found was DoubleClick but it for the component... :(
Hmm I get an erro...
Error 1 'Infragistics.Win.UltraWinGrid.UltraGrid' does not contain a definition for 'DoubleClickCell' C:\contact\FrmGest.cs 43 18 Contact
UIElements can be a bit intimidating until you get used to them. Here's a little sample code to show you what I meant:
private void ultraGrid1_DoubleClick(object sender, EventArgs e) { UltraGrid grid = (UltraGrid)sender; UIElement element = grid.DisplayLayout.UIElement.LastElementEntered; UltraGridCell cell = element.GetContext(typeof(UltraGridCell)) as UltraGridCell; if (cell != null) { MessageBox.Show("The user just double-clicked a cell."); } }
Hello There,
Is there a way to add a shortcut key on the wingrid so that it opens up the row template.
The Row Template Opens on doublick of a row.
I want a shortcut key on it.
Regards
You can show the RowEditTemplate any time you want by calling the Show method.
this.ultraGrid1.ActiveRow.RowEditTemplate.Show();
I get a null reference exception when i do this.
On the keydown event of the grid. I am checking if the key is F7 and also looking for activerow is selected.
But it gives me the null reference exception.
If you are getting a NullReferenceException it means you are trying to acces a property or method of an object that is null.
So what line of code is the exception occurring on, and what is the null object you are trying to access?
It worked. Thank you.
All my Ultragridcellproxy were inside a ultragroupbox and its tabindex property was stopping from selecting the cellproxy of the first cell.
Same way you would with any form, set the TabIndex on the control on the RET.
Also, when i Double click a row it is supposed to open the template which is working fine.
However when the Template opens I want to select a particular ultragridproxycell.
How can I achieve it.
That worked. Thank you very much. Can you divert you to another post that I made.
http://es.infragistics.com/community/forums/p/60758/377334.aspx#377334
Hi,
I suppose it's possible there's a bug in the version of the controls you are using. I am using the latest service release, of course.
How to get the latest service release - Infragistics Community
I'm not sure what you mean by "empty Row edit template". The first time I drop it down, it's empty, of course, because there's only one row in the grid and it's the AddNewRow, so there's no data in it. But I can type into the RowEditTemplate and click okay, and it adds the row to the grid correctly. Then if I double-click on the row selector for that new row, I see the RowEditTemplate with the data in it. I can edit it and everything works as I expect.
Sorry... I think I was confused about what you were doing. I've been double-click on the row and that's why it worked for me. Turns out I had the wrong method for showing the RET. Try this:
Private Sub UltraGrid2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UltraGrid2.KeyUp If e.KeyCode = Keys.F7 Then If (Not Me.UltraGrid2.ActiveRow Is Nothing) Then Me.UltraGrid2.ActiveRow.ShowEditTemplate() End If End If End Sub