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


ADVERTISEMENT

Create Custom Dynamic Legend For DevExpress GridView?

Feb 10, 2012

I have a DevExpress GridView whose cells are painted with a random color based on some condition. Now each color has a meaning and I want to show it as a legend. Number of colors used for each condition may vary.How can I do this. I'm using DevExpress 2009 Vol2, and .Net framework - 2.0 and WinForms?

View 1 Replies

Return The Value Of A Property In A Custom Class?

Jun 8, 2011

I have a custom class named Location with multiple properties.

[Code]....

How can I get the value of each p.Name and return "Main St", "AnyTown" o "USA"

View 1 Replies

Return Type Of Custom MsgBox?

Oct 21, 2010

I am building my own Message Box, I have overloaded the ShowDialog function and i wish to Change the Return Type from DialogResult to my own.

View 3 Replies

VS 2005 Custom Return Value From Dialog Box?

Apr 7, 2009

i am creating my own message box. My msgbox contains 4 button , so i want to return an integer value as the button no. that was selected (i.e return 1 for button 1, 2 for btn 2...)i tried me.dialogresult=1 , but its not working

View 4 Replies

Custom Class Constructor Needs To Be Able To Return Error

Mar 12, 2010

I'm making a class that reads a file and processes data in it, but I need some error handling. I'm giving it a constructor that takes a file location and processes that file. How can I make it so the constructor tells the program whether it found the file or not? Optimistically the program that calls this class would check for that first, but since I'm not going to be the only one that uses this class I'd like to know how to secure such a thing. It's probably bad practice to do this within the class, but I'd like to be sure it's as portable as possible.

View 6 Replies

Powershell - Return Custom Object To C# Host?

Apr 26, 2011

I have the following powershell script which loads a custom .NET DLL this contains the ScriptResult class, it is intern executed from a VB.NET app.

Add-Type -Path $myLibPath
$result = New-Object TheLibrary.ScriptResult

[code].....

View 2 Replies

VS 2005 Return Type Of Custom MsgBox?

Apr 29, 2010

I am building my own Message Box, I have overloaded the ShowDialog function and i wish to Change the Return Type from DialogResult to my own.To do so , shall i declare an Public Enum within the form and set it as the Return Type, or is there any other proper way?

View 2 Replies

Xml - Use A Custom Class To Return Data From A Web Service?

Feb 11, 2011

So I have an application that uses a webservice, On the UI side the user picks a table which sends a request across the web to my webservice to return the fields of this table. So after this request is accomplished I have, on the webservice side a series of Name,Type Pairs that I need to serialize and send back to my client. I could use a List(of String()) to send the values back but I want to use a List(of Custom_Class) instead because later I have to do this on a much larger scale and I want to learn on this simpler version.

[Code]...

View 1 Replies

Forms :: How To Return Selected Values To Custom Control

Feb 17, 2011

I'm learning .NET and I've got a question about user controls. I'm using VS 2010.. I've created an user control, which contains a textbox (code), a button and a label. When you fill in the textbox, the system searches of the codes exists, if so, the description is showed in the label, else it's cleared. When you click the button, a form opens with a datagrid where you can select a code. When you select a code in the datagrid, the code textbox should be filled in with the selected code. How do you return the selected value to the custom control? I've created a public property in the custom control, but i can't access it.

View 1 Replies

Custom Function Return Type + Input As Variable Datatype?

Dec 1, 2010

I'm wondering whether its possible to have a function's return type and input arguments as a variable.

For example this function:Private Function MyFunction(ByVal argument1 As VariableType) As VariableType

[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

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

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 - 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

.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

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

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

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







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