grid

c# adding float numbers behave weirdly [duplicate]

夙愿已清 提交于 2019-12-04 05:43:36
问题 This question already has answers here : Can anyone explain this floating point weirdness to me? (3 answers) Closed 6 years ago . I am trying to add a row's cells and display the total in a new cell in a grid. I am using gridControl from DevExpress. The grid has 12 columns representing the months in a year and I want to add the months values and display the total in the 13th column. My problem is that if I have a float value of "111,22", it is added as "111,2188" to the database and displayed

How to access children in Grid with x/y coordinates instead of index?

点点圈 提交于 2019-12-04 05:16:20
问题 I have a Grid object and want to get a specific checkbox out of it. I can use this syntax: CheckBox cbChange = grid.Children[4] as CheckBox; But how can I access this child via x/y coordinate instead, e.g.: CheckBox cbChange = grid.GetXYChild(2,3) as CheckBox; //PSEUDO-CODE using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; namespace TestGrid92292 { public partial class Window1 : Window { public Window1() {

Highlighting/Selecting grid row in ExtJS

这一生的挚爱 提交于 2019-12-04 05:09:29
I am newbie to Ext JS. I am working on a grid panel in which when I select/click any of the rows, then certain data related to the selected row is displayed in the panel below the grid. Also when the window is loaded the first should be selected/highlighted by default. Currently the grid & panel is displayed properly. Even the data related to the selected row is displayed in the panel but the row is not getting highlighted. I have tried the grid.focusRow(0) & grid.getRow(0).highlight() methods but they are not working. Below is my code. //the js file code initComponent : function() { //within

How to search nested list grid and give lettered coordinates in Python? [closed]

痞子三分冷 提交于 2019-12-04 05:06:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm new to python and struggling quite a bit to get this going. This is my task: The Six-Letter Cipher is a method of encoding a secret message that involves both substitution and transposition. The encryption starts by randomly filling a 6  6 grid with the alphabet letters from A to Z and the digits from 0 to

Kendo Grid hierarchy passing ID from master grid

拟墨画扇 提交于 2019-12-04 05:01:44
问题 I have a Kendo Hierarchial Grid where the master grid contains the Client details and the sub grid contains the Point of Contacts . I am able to pass the Client ID from the master grid into the sub grid Read action and the data is loading fine. However, the issue comes while passing the Client ID into a Add New Point of Contact button in the sub grid. If I hard-code the value the Controller method runs fine. However, it is unable to pick the reference Client ID . The sub grid is as follows:

How to filter multiple extjs grid columns?

徘徊边缘 提交于 2019-12-04 04:08:48
To filter one grid column we can use: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.load().filter('GridFieldName', searchValue); } } but how to search multiple fields at once, something like: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.filter([ {property: "GridFieldName", value: searchValue}, {property: "GridFieldName1", value: searchValue} ]); } } any ideas? EDIT: The weird thing is that in both cases, only

Stretch Grid to window size

与世无争的帅哥 提交于 2019-12-04 03:40:40
问题 I've just started learning C# WPF with a basic empty project and I want to make a grid, with a background image, which stretches exactly over the window. The way it is now, the grid stretches, but not the way I want it. For example my background image is 1000x1000px and my window size is 1700x1200px so the grid stretches to 1200x1200px (it keeps the aspect ratio of the image. I don't want this, I want it simply to stretch all over the window. Here is my code: <Window x:Class="Backgammon

Textblock.TextTrimming not working inside a grid

最后都变了- 提交于 2019-12-04 03:17:46
I have a 3 column grid for my layout with each of it width set to Width="*" . For the middle (2nd) grid, I have another 3 column grid each containing it own textblock, and again the column grids width are set to Width="*" . When the Window is resized, the grids are resized as expected, however the 3rd textblock isn't getting trimmed if the text goes outside the boundary of the grid. I have textbox set with TextTrimming="WordEllipsis" and TextWrapping="Wrap" , and the properties are not being enforced for some reason. Here is some of the code I have: Layout grid: <Grid> <Grid.ColumnDefinitions>

changing background colors of grid rows dynamically in extjs 4.2.2

╄→гoц情女王★ 提交于 2019-12-04 03:15:26
I have my grid which loads a list of data, and some of the data should change the background value by a specific date value. If the date is smaller then the today's date, it should use the css class of 'now', otherwise 'later'. It does work fine, but my problem is that only one row is changing the background color, so it doesn't go through the whole list. heres my grid: grid = Ext.create('Ext.grid.Panel', { store: store, xtype: 'gridpanel', columns: [ { text: 'Name', dataIndex: 'name', tdCls: 'x-grid-cell' } ], stripeRows: false, viewConfig: { getRowClass: function(record, index) { var date =

Responsive Semantic UI React Grid, Columns, Rows

。_饼干妹妹 提交于 2019-12-04 03:12:30
I'm having trouble making Semantic UI React grid fully responsive, at least respond the way I want for Desktop, Tablet and Mobile. I have following three components which I am rendering in Grid Columns. import React,{ Component } from 'react'; import { connect } from 'react-redux'; import { Grid, Header } from 'semantic-ui-react' import GetJobs from '../../components/Home/GetJobs'; import PostForm from '../../components/Home/PostForm'; import Feed from '../../components/Home/Feed'; import Articles from '../../components/Home/Articles'; import './home.css' class Home extends Component { render(