ultrawingrid

Cannot disable UltraGrid cells

混江龙づ霸主 提交于 2019-12-25 07:50:07
问题 I have an UltraGrid in my project. Data can be entered into each cell, which is then saved to the database. I want to be able to disable all of the cells in the current row EXCEPT for one called Product_Code . Once data has been entered into the active row column (this is entered via a ValueList ), I then want all of the other cells to become available for entering data into. So far I have tried If Me.ugProducts.ActiveRow.Cells("Product_Code").Value.ToString = "" Then Me.ugProducts.ActiveRow

Unable to select multiple rows on infragistics ultrawingrid with a check box column

有些话、适合烂在心里 提交于 2019-12-24 17:27:34
问题 I am having below code that successfully adds a check box column to the ultrawingrid, my problem is that when I make a selection by checking a check box on the Select column the count of selected rows of ultrawingrid is not updated and it still shows the count as zero, and also I want to know how to enable multi checkbox selection i.e multiple rows selected... Below is the code... private void grdPayVis_InitializeLayout(object sender,InitializeLayoutEventArgs e) var gridBand = grdPayVis

Remove image in a cell of Ultragrid

妖精的绣舞 提交于 2019-12-24 12:16:53
问题 I have set image to a cell and i have to remove at some point of time. //Code 'Get the first cell of the first column in the grid UltraGridCell = UltraGridRow.Cells(UltraGridColumn.Index) If (UltraGridColumn.Hidden = False) Then 'Set the cell image UltraGridCell.Appearance.Image = My.Resources.Tran_comment_161 UltraGridCell.Appearance.ImageHAlign = HAlign.Right UltraGridCell.Appearance.ImageVAlign = VAlign.Top Exit For Else 'Code to remove the image from the cell End If How can i do this? 回答1

UltraWinGrid enter edit mode issue

橙三吉。 提交于 2019-12-24 05:56:59
问题 I have an UltraWinGrid and I want to give the focus to a specific cell and make it enter edit mode programmatically ( no click ). So I did this : If myUltraWinGrid.ActiveRow IsNot Nothing Then myUltraWinGrid.ActiveCell = myUltraWinGrid.ActiveRow.Cells("foo") myUltraWinGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode) Else myUltraWinGrid.ActiveCell = myUltraWinGrid.Rows(0).Cells("foo") myUltraWinGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction

UltraWinGrid Auto Refresh

半城伤御伤魂 提交于 2019-12-24 00:13:49
问题 In my vb.net project, I have 3 forms. home_mdi , Viewfrm and AddDatafrm . Viewfrm has an UltraWinGrid on it, which is displaying some data. When I click the add data button, AddDatafrm opens. When data is saved, the form then closes. At this point, I want the UltraWinGrid on Viewfrm to update/refresh and display the data that I added. At the moment, it doesn't display it until I close Viewfrm and then open it again. The images show this. (Data is not there at the start, it then gets added and

Show calendar in Ultragrid Column Filter

天涯浪子 提交于 2019-12-13 15:19:17
问题 I have an UltraGrid in which I have many columns of which 2 columns are DateTime style. Now when I use the filter of that columns it shows all the DateTime values as a text in a dropdown. But I need that as a calendar in order to make the filter easy. It is enough to show just a calendar when clicking the filter. I have tried some code but it doesn't work. //Code: Private Sub grdResult_BeforeRowFilterDropDown(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid

Adding a checkbox column to the infragistics ultrawingrid that is bind to a datasource

二次信任 提交于 2019-12-13 12:21:26
问题 I am trying to add a new checkbox column to the ultrawingrid that is binding to a dataset, when ever I add a new column it says key not found, any ideas on how to fix it, Thank you... Below is the code private void grdPayVis_InitializeLayout(object sender, InitializeLayoutEventArgs e) { var gridBand = grdPayVis.DisplayLayout.Bands[0]; gridBand.Columns["Select"].Header.Caption = "Select"; gridBand.Columns["Select"].Header.Appearance.TextHAlign = HAlign.Center; gridBand.Columns["Select"].Header

Cannot set UltraGrid Checkbox value to True after saving the initial data

随声附和 提交于 2019-12-13 07:20:33
问题 My project contains a form which allows the entering of orders, using an UltraGrid . One column is a checkbox style column, to represent whether or not the order has been delivered. When the order reaches 'Stage 4 - Awaiting Goods Delivery', the user can set the column value to True , which in turn prompts a new window, to allow the user to enter the volume and value of the delivery. If the order hasn't been fully delivered, the checkbox is set back to False , and the order line turns yellow

ComboBox in UltraGrid

99封情书 提交于 2019-12-11 11:51:01
问题 I have to do some maintenance on an old VB.NET application (Visual Studio 2003) that uses Infragistics NetAdvantage 2006. I need to add a column to an existing UltraGrid control. This new column must act like a ComboBox, allowing the selection from a list of values. I added the new column, and set the Style to DropDownValidate. I created a ValueList and assigned it to the new column. At run-time I don't get the expected results. What am I missing? 回答1: Something like this should work for you:

Infragistics UltraGrid: GroupBy row ForeColor changes when clicked

廉价感情. 提交于 2019-12-11 03:21:15
问题 Using Infragistics UltraGrid in WinForms in C#: I am conditionally changing the color of the ForeColor of some GroupByRows on a grid. When the user clicks the row, the color changes back to the active/selected/hot tracked/whatever color until they click on something else. I'd like the text color of the rows that I have conditionally colored to never change. Here's how I'm setting the color: Row.Appearance.ForeColor = System.Drawing.Color.Orange; Any idea how to make it stick even when the row