如何使用绑定源更新datagrid视图(how to use the binding source to update the datagrid view)
我在描述表单中有datagird视图我使用绑定源绑定此datagrid视图...
我已将
description form
的选定行值发送到另一个表单(order form
)....这很好......我已经做了一些修改....现在我需要以描述形式更新datagrid视图...
我不知道如何使用绑定源来更新订单...
我是否需要将
binding source as a constructor
传递,如果是这样,请告诉示例代码片段。或者我可以像这样
datagridview1.refresh() ;
按顺序...我不知道该如何做到这一点会对此有所帮助......
非常感谢......
I have datagird view in description form i am binding this datagrid view using binding source...
i have sent the selected row values from
description form
to another form(order form
)....thats fine...i have done some modifications....in order form now i need to update the datagrid view in descrption form...
I dont how to use the binding source for updating in order form ...
Do i need to pass
binding source as a constructor
, if so would you pls tell a sample code snippet..or can i just do like this
datagridview1.refresh() ;
in order form ...I am not sure how to do this would any pls help on this...
Many thanks......
原文:https://stackoverflow.com/questions/7312680
最满意答案
- 将TabPanel的AutoScroll属性设置为true(感谢@LarsTech)。
- 将用户控件添加到TabPanel。
- 将用户控件移动到TabPanel的远处。 您可以通过更改其位置x值来执行此操作。
在(3)之后,滚动条将在编辑器中更改,并且选项卡面板的可编辑区域将增加
- Set the AutoScroll property of the TabPanel to true (thanks @LarsTech).
- Add a user control to the TabPanel.
- Move the user control far down the TabPanel. You can do this by changing its Location x value.
After (3) the scroll bar will change in the editor and the editable area of the tab panel will have increased
相关问答
更多-
你试过调用setWidth100()和setHeight100()吗? listGrid.setWidth100(); listGrid.setHeight100(); 调用这些方法的是SmartGWT相当于将宽度和高度设置为“100%”。 Ok, found the answer: theGrid.setAutoFitData (Autofit.VERTICAL); theGrid.setHeight (1); theGrid.setShowAllRecords (true); theGrid.setB ...
-
窗口中的可滚动tabpanel(Scrollable tabpanel in window)[2021-07-22]
您可以将工具栏添加到选项卡面板。 对于另一个问题:摆脱tabpanel上的height: 340配置并给它一个layout: 'fit' fit'config。 然后添加另一个layout: 'fit' gridpanel上的layout: 'fit'配置。 那应该处理它。 这是ExtJS3文档中的fit布局。 You're right to add the toolbar to the tabpanel. For the other problem: get rid of the height: 340 ... -
在窗口中折叠TabPanel(Collapse TabPanel in Window)[2023-08-18]
您可以在崩溃之前附加/侦听事件,并在那里返回false以防止崩溃。 请看这个链接 Ok, i resolve my problem. If is usefull for anyone this is what i do: i give set this properties to my TabPanel: tabMsgProcessedFill = new Ext.TabPanel({ id:'TabPanel', region : 'south', ... -
我最终在代码隐藏文件中使用了可视化树帮助器 var tabPanel = VisualTreeHelpers.FindChild
(TabControl, "MenuPanel"); I ended up using visual tree helper in the codebehind file var tabPanel = VisualTreeHelpers.FindChild (TabControl, "MenuPanel"); -
将TabPanel的AutoScroll属性设置为true(感谢@LarsTech)。 将用户控件添加到TabPanel。 将用户控件移动到TabPanel的远处。 您可以通过更改其位置x值来执行此操作。 在(3)之后,滚动条将在编辑器中更改,并且选项卡面板的可编辑区域将增加 Set the AutoScroll property of the TabPanel to true (thanks @LarsTech). Add a user control to the TabPanel. Move the ...
-
这是我的解决方案,以防任何人感兴趣:它绝对不理想,非常hacky但它似乎工作正常。 也许有人会更好地看到我现在想要完成的任务,并且可以提出更好的实现:-) Ext.define('Ext.tab.AutoHeightPanel', { extend: 'Ext.tab.Panel', alias: 'widget.autoheighttabs', constructor: function(cnfg){ this.callParent(arguments); ...
-
为了控制标签的厚度(即宽度),请使用: tabset.setTabBarThickness(int tabBarThickness); 要显示具有垂直方向的文本,可以使用css控制用作选项卡标题的文本样式。 所以类似下面这样就足够了: tab.setTitle("My Tab"); tab.setTitleStyle("tab-text"); 在应用程序的CSS中: .vtab-text, .vtab-textSelected, .vtab-textSelectedOver { -moz-tra ...
-
您可以动态创建它们: rm(list = ls()) library(shiny) library(shinydashboard) showTab1 <- T showTab2 <- F showTab3 <- T ShowTotal <- which(c(showTab1,showTab2,showTab3)) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody(uiOutput("ui")) ...
-
GWT:在全屏TabPanel中创建可滚动的FlexTable(GWT: Creating a scrollable FlexTable in a full-screen TabPanel)[2022-06-02]
您可能需要在该选项卡内使用ScrollPanel来获得所需的效果。 ScrollPanel是一个容器,它只需要一个小部件,并根据需要在其上放置一个滚动条。 我应该注意到,据我所知,ScrollPanel依赖于在其上设置一个明确的大小,否则它会很乐意随你放入的内容进行扩展。 但需要注意的是:TabPanel内部存在任何类型的可滚动面板,这是一个长期存在的缺陷。 最后我看到它仍然是开放的。 http://code.google.com/p/google-web-toolkit/issues/detail?id= ... -
无法在TabPanel Sencha Touch 2中显示TabPanel(Trouble showing TabPanel inside TabPanel Sencha Touch 2)[2024-02-01]
要获得所需的布局, Tabview( Card.js )应为NavigationView类型 NavigationView在Container之上添加了额外的功能,允许您随时推送和弹出视图。 执行此操作时,NavigationView将在当前活动视图和要推送的新视图或要弹出的上一个视图之间自动设置动画。 所以卡可以定义为 Ext.define('FirstApp.view.mypages.Card', { extend: 'Ext.NavigationView' }) 通过使用以下配置,仍然可以使 ...