1
Help for ParamQuery Grid (free version) / Re: master detail reset
« on: February 19, 2014, 03:56:48 am »
First of all thanks for feedback.
I decided to go with setting the detail to a default first row of master...and got things working by cleaning up how I was storing my master grid selected key...on the row select event I store my key, and I do a detail grid refresh in the master getdata. In the detail getdata, I can then check if a current page row is selected (ie. master row clicked)...otherwise I get the current master data and set my details with the first row results...
In my combo box change event...I make sure to unselect rows...this works fine except for scenario where user clicks an editable cell, leaves it there and then click the combo (I may post shortly on that since I do not see how to check if a cell is selected...row sure, but cell no)...this would effectively break saving data so I think there is some notes on using the onblur.
I'll post some code snippets once I make sure it works cleanly.
djm
I decided to go with setting the detail to a default first row of master...and got things working by cleaning up how I was storing my master grid selected key...on the row select event I store my key, and I do a detail grid refresh in the master getdata. In the detail getdata, I can then check if a current page row is selected (ie. master row clicked)...otherwise I get the current master data and set my details with the first row results...
In my combo box change event...I make sure to unselect rows...this works fine except for scenario where user clicks an editable cell, leaves it there and then click the combo (I may post shortly on that since I do not see how to check if a cell is selected...row sure, but cell no)...this would effectively break saving data so I think there is some notes on using the onblur.
I'll post some code snippets once I make sure it works cleanly.
djm