Fill A Devexpress.LookUpEdit With Set Values?

Feb 22, 2011

I have a Devexpress LookUpEdit that I want to fill with 2-3 values. For example "Value 1" (1) and "Value 2" (2). I want this name to be displayMember of the LookUpEdit and the number in brackets be the valueMember so that if I was given the number 1 I know to set the selected value of the LookUpEdit to "Value 1".

View 1 Replies


ADVERTISEMENT

Can't Un-select DevExpress LookUpEdit?

Oct 28, 2010

I have a DevExpress LookUpEdit that I am using withing Visual Studio 2008 in VB.Net. I have the LookUpEdit bound to my datasource and the value that it is displaying may be null or one of the rows in the datasource. My program displays a treelist and when a node is select the LookUpEdit is supposed to display the assigned value (could be null) and let the user reassign the value. I do have the LookUpEdit.Properties.AllowNullInput set to True. Right now when the program first starts if the first node in the treelist I choose has a null value the LookUpEdit displays nothing, if I change the value of the LookUpEdit the value changes in the database, if I change to a node that has a value for the LookUpEdit the value does display.

The problem is that if I switch from a node with a value to one without the LookUpEdit displays the previous value. I have gone through the debugger and it is still going through the fetch properly.

I have tried to reset the LookUpEdit.Text, LookUpEdit.EditValue and LookUpEdit.SelectedText but nothing works. I even replicated the conditions that the LookUpEdit has when it first displays nothing (LookUpEdit.Text = "" and LookUpEdit.EditValue = " ") but it still displays the last value.

[Code]...

The values are set. The problem is that in the act of setting the value the dropdown menu opens. So I get it to close with lueLocation.ClosePopup(). For some reason when it gets called it changes the .Text and .EditValue back to the previous values and thus calls the TextChanged Event.

View 2 Replies

Get Devexpress LookupEdit Value Member Value?

Feb 15, 2012

I want to know how to get the value member value in lookupEdit.I set the DisplayMember as prior to SupplierNameAnd ValueMember to SupplierIDThe code below displays both and SupplierName as the text in lookupedit..what I want is to keep the SupplierName as the Display but I want to get the supplierID when saving it to databaseScenario: want the value of the Supplier ID for example 001 - Supplier1 Thedisplay text in the look up is Supplier1 what I want is the 001

Private Function LoadSupplierData()
Dim bResult As Boolean
Dim SQLcmd As New System.Text.StringBuilder

[code]....

View 1 Replies

.net - Devexpress LookupEdit Is Not Displaying The Selected Row For The Last Row?

Jul 23, 2010

I am using DevExpress.XtraEditors.LookUpEdit to display the information about the classes available. Currently it has 3 columns. The lookupedit is working perfectly except when I set the editValue to the last row. When the editvalue is set to any row other than the last one it shows the selected row when the lookupedit isn't opened yet when the lookupedit is set to the last row nothing is displayed.

[Code]...

Right now the lookupedit displays the selected text unless I select the last row, row number tableData.Rows.Count which then displays nothing. Yet when I print the values they are correct and when I remove the +1 when setting the lookupedit it sets it to the previous line I want an the first row can't be displayed.

View 1 Replies

Fill Two Values In Combo Box?

Nov 18, 2009

how can i fill two value in combo box . first one for visible and second one for backend(key column) like in vb (Item data)[code]

View 1 Replies

Fill Values From Dataset?

Feb 9, 2012

I have a need to assign values from my dataset to a variable but when i use string (which its normally text) and the item in that row of the dataset is empty it tells me that conversion from DBnull to string is not valid

View 2 Replies

Fill A Combobox With Values From A Datatable?

Feb 13, 2009

I want to fill a combobox with the values that I have in a datatable. How can I do that? Below is the code for the population of the datatable:

[Code]...

View 5 Replies

Fill A Datagrid With Values From A Textbox?

May 2, 2011

i am trying to fill a datagrid on form 2 with data from a textbox in form 1 but i can't find how to do this.

for moving of data across forms i can do that by frm as new form2 frm.datagrid.datasource=ds.tables (i can do it) but binding the text box to the datagrid is my worry.

[Code]...

View 1 Replies

Fill A TableAdapter With Multiples Filter Values?

Mar 29, 2011

I have a table adapter on the data set which is filled by using filter parameter (UserID Field). the filter column is an integer. if i pass one integer value it process perfectly. ie;[code].....i need to fill the adapter with multiple users, so i tried the following code and it gives an error [code].....it gives the error saying "Conversion failed when converting the nvarchar value '1,2,3,4' to data type int.

View 5 Replies

C# - Fill Combo-box Via DataSource Using Values From Various Columns?

Jun 12, 2010

Employee emp = new Employee();
comHandledBySQt.DataSource = emp.GetDataFromTable("1");
comHandledBySQt.DisplayMember = "FirstName";

The above code displays drop list of employees first names in a combo box. I want first name and last name to be displayed. How can i do it?I tried to include two columns FirstName and LastName as below but didn't work.

comHandledBySQt.DisplayMember = "FirstName" + " " + "LastName";

View 2 Replies

How to Fill THat Values In Sql Column Sql Data Type Is Integer

Mar 27, 2011

I want Too Know how Can i Fill THat values in the sql Column my Sql Data type is Integer Can i fill any SIGN Valuse like (122,123)(123+123)(321-123)(485;456)(301>908) in these Values Can i use any one in sql column and the column data type is Integer.

View 6 Replies

Fill Values Programmatically To Added Buttons - Efficient Way To Program?

Aug 15, 2009

want to make a custom calendar. For that I made a table of 7 cols and 6 rows and added 42 buttons in it. I added an event handler. I used this file in other form and when I click at the button the event is fired in form2. I understand this is not hte efficient way to add so many buttons. As it is a calendar, so I got to add dates to buttons based on month selected.I am finding that part difficult. For this feature, I think I should add buttons dynamically. But I can't make out how to add buttons to each cell of the table. Later on each buttons text will also change. I have added the code written so far :

Public Partial Class CalendarControl
Inherits System.Web.UI.UserControl
Public mnthNo As Integer

[code].....

View 6 Replies

Focus A Particular Row In Devexpress?

Dec 17, 2009

how to focus a particular Row in devexpress

View 4 Replies

Add CheckBox At DevExpress XtraGrid?

Feb 12, 2010

I want to add CheckBox at DevExpress's xtraGrid columm so for this what should i do

View 1 Replies

How To Tell When DevExpress FindPanel Is Closed

Oct 4, 2011

I am currently programming in Visual Studio 2010 within VB.NET and am using DevExpress v10.2. I just started programming with the WinForms XtraGrid FindPanel and so far it works wonders. However I was wondering if there is any way to know when the user closes the FindPanel. Right now if gridview.OptionsFind.AllowFindPanel is True and gridview.OptionsFind.AlwaysVisible is False then the user is able to click on the x and close the FindPanel. Is there anyway to catch this closing? I don't want to stop it just do a couple of things once it is hidden or closed.

View 1 Replies

What Version Of Devexpress Is More Suitable

Jun 16, 2011

what version of devexpress is more subtable for vb.net 2008?

View 1 Replies

.net - Trigger Button Through Code In Devexpress?

Jan 16, 2012

This Code Work fine with ordinary button but the button in devexpress provided me some error. It says that sender and e are not declared..

Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean

[Code]....

View 2 Replies

Hid The Column Header For A Devexpress GridLookUpEdit?

Nov 26, 2010

I currently have a DevExpress GridControl where one of the columns have a GridLookUpEdit assigned under ColumnEdit. Yet when I run there is a column name (the display member) that shows up.I know with a LookUpEdit you can set the column headers to invisible with lookupedit.Properties.ShowHeader = False but I have no clue how to make it invisible for the GridLookUpEdit.

View 3 Replies

Program 2008 Isn't Recognizing DevExpress

Jun 3, 2010

I have been working in Visual Studio which has DevExpress. My project now doesn't recognize DevExpress so I now have 102 errors on lines like:[code]...

In addition to this when I try to go to the designer for my DevExpress report it can't load the designer :

"The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: rptAll --- The base class 'Object' could not be loaded. Ensure the assembly has been referenced and that all projects have been built."

Yet when I look in my toolbox the DevExpress tools (XRLine, XRLabel...) are still shown and DevExpress is still located in my reference folder.

View 1 Replies

Return A Value From A Custom DevExpress ButtonEdit?

Dec 27, 2011

I have a custom EditButton that shows a dialog for the user to select a value.This is used by an xtra grid as an editor for a cell.The user can click the cell editor, the dialog shows and they can select the item they want.

View 1 Replies

Saving DevExpress Ribbon Layout?

May 5, 2012

I made a devexpress ribbon and have a ribbon page for dynamic controls which gets added by the end-user. I would like to know how to save it when the form closes, so the next time the user opens he/she will have the control. Since devexpress ribbon control doesn't have RibbonControl1.SaveLayoutToXml(), is it possibe to do it?

View 2 Replies

Validation In ASPXUpload Control In Devexpress + XPO?

Dec 16, 2011

I have added ASPXUploadControl to save the Image File.I want to apply Validation (Required Field Validation) on this control.. but i dont find ValidationSetting Tag in this Control

<asp:FileUpload runat="server" ID="fuAttachment" CssClass="mediumResolution required" Width="100%" />

View 1 Replies

Override The DevExpress Filter Choices In GridControl?

Oct 5, 2011

I am currently programming in Visual Studio 2010 within VB.NET and am using DevExpress v10.2, specifically WinForms. In the DevExpress GridControl at runtime you can click on the right side of the column header and choose which values in the column you want to show. For example if your table contained:

Name1 Checked
Name2 Unchecked
Name3 Unchecked
Name4 Checked

Then if you click on the right side of the checkbox's header you can choose checked (or unchecked) and it would display only the data that is checked (or unchecked). In this case with checked you would have:

Name1 Checked
Name4 Checked

I was wondering if there was some way to override the names so instead of letting me choose checked or unchecked I could override it with 'owned' and 'rented' or 'active' and 'inactive' based on what the checkbox represents in that specific column.

View 1 Replies

.net - Devexpress (10.2) GridControl Isn't Letting Null Value In Column

Jul 21, 2011

I am using VB.net within Visual Studio 2008. I currently have GridControl where one of the columns fetches a real number from the database. Whenever I try to remove the value I get a red 'X' saying that the input string is not the right format even though I know it can display null because the row underneath fetched a null value for that column.

View 1 Replies

Allow The DevExpress.XtraTab.XtraTabControl Have Its Tabs At The Bottom?

Mar 19, 2012

I am using DevExpress 11.2 within Visual Studio 2010 and I am currently using the DevExpress.XtraTab.XtraTabControl within my form. I love the way the tabs look; however, I would like the tabs to be located at the bottom of the TabControl rather than the top.

View 1 Replies

Cell In Devexpress Treelist Is Set To Editable Yet It Won't Let Me Edit

Jul 18, 2011

I am using a DevExpress (10.2) Treelist in my VB.Net project in Visual Studio 2008. I currently have a treelist with TreeList.OptionsBehavior.Editable = True. I have two columns were the first one is AllowEdit = False. The second column I am setting the AllowEdit and ReadOnly dynamically though the action FocusedNodeChanged.

Within the FocusedNodeChange subroutine I check if a specific value is in the row and if so I set it to be editable or non-editable. I am setting it to be editable with[code]...

View 1 Replies

Devexpress (10.2) GridControl Isn't Letting Null Value In Column?

Oct 1, 2010

I am using VB2008 on Win XP SP3 and an relatively new using this language. I would like orientation or advice on how to proceed given the following:I execute an SQL statement, such as select * from MyTable where FieldX='aaa'An exception happens. Now I need to attempt to determine what went wrong:1. Cable was cut2. Syntax error in SQL3. PC where SQL Server is running crashed4. Timed outI need to attempt to recover from this issue. I have basically 2 options: It is a glitch that self corrects after a period of time, so I can just go ahead and retry the operation a few times. Option 2: It is something permanent, so no matter how many times I retry, the error will persist.

View 3 Replies

Devexpress - Making A Call From One Usercontrol To Another Form

Aug 28, 2010

I have a tabcontrol that creates tab pages from a "User Control" I created (a separate form in vb.net) using this code: (MainTab is the separate user control I created which has text boxes etc in it)

Dim tmpTab As New MainTab
myTabControl.TabPages.Add()
Dim tmpTabCount As Integer = myTabControl.TabPages.Count
myTabControl.TabPages.Item(tmpTabCount - 1).Controls.Add(tmpTab)
myTabControl.TabPages.Item(tmpTabCount - 1).Text = "Untitled"

I'm using the devexpress xtratab control so the code might look a bit different than the default vb.net tab control.

Now in my MainTab user control file file, I can't for the life of me figure out how to call a control in the form1 where the xtra tab control is placed on. "Me.Parent.Dispose" works for closing the tab when executed via the MainTab control, but that's as far as I can get for communicating with the parent from.

I'm not sure if I have to reference something in the MainTab user control or what in order to communicate with any objects on the default form1.

View 1 Replies

DevExpress Accelerator Keys Not Showing In XtraBars

Dec 3, 2010

I'm using DevExpress 2010 vol 1, VS2010 and VB.NET. In my form I have a xtraBar which is used to create the application main menu. Each of the menu items were carefully captioned using the ampersand char (&) to create the keyboard accelerator key, so when user press ALT key and hit the accelerator key the menu is shown. The problem is I can't make the underscore show in any caption. For instance, my first menu "File" has caption "&File", but the "F" is never underscore, and pressing ALT + F doesn't work either.

[Code]....

View 1 Replies

Join Doesn't Working In LINQ In Devexpress XPO

Nov 23, 2011

I have used persistance class and used following LINQ query.[code]but it throws an error saying. "Specified Method is not Supported".How can i get data from two table using XPO Persistance Class?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved