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
What version of the grid are you using? The DoubleClickCell event was added to the grid at some point, so you might have an old version from before it was added.
If that's the case, you would need to use the grid.DisplayLayout.UIElement.LastElementEntered property. Call GetContext on the element and pass in a type of UltraGridCell. It will return a cell or null and that should give you what you need.
The version I have is NetAdvantage 2005 vol 1.
It seems very complicated... I don't know if I understood what you mean.. :(
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
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