Chris_Conn
(Chris Conn)
December 28, 2016, 8:42pm
1
In my implementation, I use the selected row of an UltraGrid to do some work.
I found that clicking a cell does NOT select the row so I wrote a simple OnClick handler of cells:
private void epiUltraGridJobs_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs args)
{
// ** Place Event Handling Code Here **
// --- FORCE SELECTION OF ROW ON CLICK
epiUltraGridJobs.Rows[args.Cell.Row.Index].Selected = true;
}
That worked perfect until I started playing with grouping in the grid, now it doesn’t work.
Any thoughts?
josecgomez
(Jose C Gomez)
December 28, 2016, 8:44pm
2
You can disable cell selection and force it to always select a row… use the google
Chris_Conn
(Chris Conn)
December 28, 2016, 8:57pm
3
Google is only helpful if you know what you are looking for Lucky for me you narrowed it down.
epiUltraGridJobs.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
Chris_Conn
(Chris Conn)
December 28, 2016, 9:45pm
4
And hooking a “system” control to hijack the handler? I need to fire an onTextChange event for a system epiTextBox. I thought about making a timer and copying contents into a custom textbox but it just seemed wrong.
josecgomez
(Jose C Gomez)
December 28, 2016, 9:52pm
5
You can hook a Field_changed event on the EpiDataView… you can also just add your own handler in code…
asp.net, textbox
Chris_Conn
(Chris Conn)
December 28, 2016, 9:54pm
6
I can just add the handler?! I am so confused about what I can and can’t do to a ‘standard\default’ control.
josecgomez
(Jose C Gomez)
December 28, 2016, 9:55pm
7
A standard control you can do whatver you want with it, just have to do it via code… use csm.GetNativeControlRef and then you get a standard object
Chris_Conn
(Chris Conn)
December 28, 2016, 9:58pm
8
So I could go and change any event handler for any control on any form? I am liking the chaos of this thought! Not sure where I came up with my current (mis)conception of these controls. I guess I just pieced it together from various posts.
On second though, I think maybe the Event Wizard may have added to my confusion.
josecgomez
(Jose C Gomez)
December 28, 2016, 10:00pm
9
Why do you always go to naughty places?
Chris_Conn
(Chris Conn)
December 28, 2016, 10:01pm
10
Haha - I already have a mess of code from orphaned code wizard stuff (and that’s not even counting my own code mess)
I tried (for a minute) to figure out how to get things OFF of the Event list in the wizard
knash
(Ken Nash)
November 16, 2017, 7:44pm
11
Which event are you setting the override?
Chris_Conn
(Chris Conn)
November 16, 2017, 8:58pm
12
I believe I used FormLoad