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
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.
Regards
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?
The following Code gives me the error.
The error in on the line where i call the show method.
"Object reference not set to an instance of an object."
Private Sub UltraGrid2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UltraGrid2.KeyUpIf e.KeyCode = Keys.F7 Then Me.UltraGrid2.ActiveRow.RowEditTemplate.Show()End If End Sub
Attached is the Sample Application.
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://ko.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