refresh

Can the SqlDataAdapter refresh itself when the table is changed from an outside source?

泪湿孤枕 提交于 2019-12-11 06:05:50
问题 My SQL Server table is updated from outside of my program (from a SQL trigger, actually), so the DataSet doesn't realize that there are changes and my DataGrid doesn't update unless I explicitly call SqlDataAdapter.Fill() again (e.g. with a "Refresh" button or a timed event). Is there a way that ADO.NET can subscribe to change events or such so that it refreshes itself? 回答1: Yes, using Query Notifications. You get a callback when the dataset has changed and you run your query again. 来源: https

Remeber iFram SRC when refreshing parent page

旧巷老猫 提交于 2019-12-11 05:09:02
问题 I have an intranet I am building, and am learning web languages as I go. I have a basic html/php page that contains an iFrame, which most of my content is loaded into. I also have a login box that is a popup modal within the main page. When you fill in this popup and hit login, it refreshes the main page, so that it knows you are logged in, and can display your name etc etc. However, this means that the iframe SRC also resets to its default. Is there a way to retain whatever the current SRC

Vue2 Element-UI Datepicker force refresh for dynamic disabledDate

五迷三道 提交于 2019-12-11 04:38:13
问题 In the codepen below I have a Element-UI datepicker set up to show a dynamic disabled dates based on a random number. The number of disabled dates change every time the datepicker input comes into focus. My issue is the datepicker doesn't refresh the disabled dates until you click on a different month. The datepicker also shows the last month you were previously on when when you click off and back in. Is there a way to force Element-UI Datepicker to refresh? I would like to make the

Send WM_SETTINGCHANGE message to refresh desktop

让人想犯罪 __ 提交于 2019-12-11 04:20:09
问题 I managed to programmatically change my desktop background via this one-liner: DllCall("user32.dll", "int", "SystemParametersInfo", "int", 20, "int", 0, "str", $CmdLine[1], "int", 0) … by drag and drop of the desired wallpaper onto the compiled script. I have another program that changes the desktop but for some reason fails to send the WM_SETTINGCHANGE message (I can see the key HKCU\Control Panel\Desktop\Wallpaper getting updated). How can I send this message to trigger a wallpaper refresh?

Titanium refreshing TableView with new data

爷,独闯天下 提交于 2019-12-11 03:28:10
问题 This is what I am trying to do: _tableView.data[0].rows[selectedPosY].children[selectedPosX].imageId = tempImageId; _tableView.data[0].rows[selectedPosY].children[selectedPosX].image = tempImageUrl; Titanium.API.info("imageIdSelected:" + _tableView.data[0].rows[selectedPosY].children[selectedPosX].imageId + "imageSelected:" + _tableView.data[0].rows[selectedPosY].children[selectedPosX].image); The update is done on the data, but it doesn't reflect in UI table, what is missing? I even tried

Xcode Subversion (SCM) Difference between Refresh and Update

廉价感情. 提交于 2019-12-11 03:05:26
问题 I have configured Xcode to use Subversion (hosted on a remote webserver - Beanstalk.com). In Xcode menu under SCM, I want to know the difference between two options 1. "Refresh Entire Project ..." and 2. "Update Entire Project ..." Please help. Thanks Dev. 回答1: Open the SCM Results window from the SCM menu item, click on the little 'text' button on the left-hand-side (might be at the bottom of the window to start with?), expand it so you can see a little more, and then run refresh and update

refreshing a WPF window on demand

*爱你&永不变心* 提交于 2019-12-11 02:36:17
问题 I noticed that if I move my WPF window through code, I will only see that changes when the window refreshes (if I minimize and then maximize it). Is it possible to refresh the GUI of a WPF on demand? EDIT: I'm actually trying to make this window follow another window. So I'm hooking to the other window's events: m_wndParent = parent; this.Owner = m_wndParent; m_wndParent.SizeChanged += ParentSizeChanged; m_wndParent.LayoutUpdated += ParentLocationChanged; and then I change my window's

A more elegant ListView requery

末鹿安然 提交于 2019-12-11 02:04:12
问题 I need to refresh my ListView every time the another control's IsChanged event is fired. I googled on how to do that, and I saw a stackoverflow link that led me here One of the answers worked: listView.ItemsSource = listView.ItemsSource Is that really the only way to refresh my ListView ? It feels kinda off. 回答1: Just invalidate it. listView.InvalidateProperty(ListView.ItemsSourceProperty) That ought to do it. As an aside, I would really suggest looking at MVVM. It tends to be much more

Kendo Mobile - Can not refresh listview on ModalView Close

时间秒杀一切 提交于 2019-12-11 01:27:00
问题 I can not refresh the listview when a dialog which add's or deletes rows from this listview is closes. I tried several things. but the following does not work function closeModalViewRemove() { $("#modalview-app-remove").kendoMobileModalView("close"); //--- this is not working -- start --- refreshAppList(); //--- this is not working -- finish --- }; function refreshAppList() { var applist = $('#applist').data('kendoMobileListView'); applist.dataSource.read(); applist.refresh(); } what am I

Firefox Extension - Monitor refresh and change of tab

北城余情 提交于 2019-12-11 00:45:16
问题 I need to know when a user refreshs the page and when he switches to another tab. Does anyone has a clue how to capture this in a firefox extension? Best regards Christian 回答1: What you seem to want is knowing when the value in the location bar changes. This requires implementing nsIWebProgressListener interface. The only method you really need is onLocationChange , rest of them should be dummies. You can find the documentation along with code examples here: https://developer.mozilla.org/en