Using DevExpress XtraPrint To Print The Data In A GridControl With Two Associated GridViews?
Oct 13, 2011
I am currently programming within Visual Studio 2010 using VB.Net and DevExpress V10.2 Winforms. I currently have a DevExpress GridControl that contains two DevExpress GridViews.So there is the main view and the subgrid (similar to the DevExpress demo for Master-Detail Grids - example with WinForms and better view with ASPxGridView). Currently the data for the grid is fetched into a DataSet:
If myDataSet.Tables.Count > 0 Then
myDataSet.Relations.Add("Details", myDataSet.Tables(0).Columns("id"), myDataSet.Tables(1).Columns("id"))
[code].....
View 2 Replies
ADVERTISEMENT
Jan 6, 2012
I am currently using DevExpress 10.2 within Visual Studio 2010. I am printing the contents of the GridControl (with both one and two GridViews contained within). This shows all the current visible columns (and not the invisible columns) and all the data in a viewable manner.
My issue is the print preview always shows all the grouped rows and the master-detail rows fully expanded. I want to make it so that if the user has none of the groups or rows expanded then the print preview displays the grid with none of the groups or rows expanded. Also if the user expands the first group and rows fully then only the first group and rows will be expanded in the print preview and none other.
[Code]....
View 1 Replies
May 5, 2011
Using DevExpress 10.2 within Visual Studio 2008 with VB.Net I have created a single gridcontrol that contains two different gridviews. The gridviews are related using an id column. Basically if there are related details about a row in the first gridview then the user can click on the plus sign to see all the related details. When I have any row on the first gridview I am able to get the focused row. Yet when I have the focus on any of the rows in the second gridview I am unable to get the focused row or the content of the row.
[Code]...
Is there any way to get the value in id from the focused inner gridview? Or at least figure out the parent row and grab the id value from there?
View 1 Replies
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
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
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
Oct 4, 2010
I'm looking for a solution to implement in web apps where I have the option to see a print preview or print either a gridview, datagrid, or datatable or export it to word or excel. What's the best method to do this or has someone written a class that does this, and does it well (I've seen many examples, but many still have errors)?
View 1 Replies
May 27, 2010
I am using DevExpress GridControl to display information from my database through a stored procedure (ie. SELECT * FROM aTable). Unfortunately when I run the program it doesn't display any of the information, columns, etc. It displays an empty table. I know that there is information contained by the GridView though as I have print statements that return the row count. Specifically:Console.WriteLine(GridView2.RowCount) ' returns the number of rows that should be displayedConsole.WriteLine(myTable.Rows.Count) ' returns the number of rows that should be displayedWhat should I do so that the actual data within the table (DataTable) and the DataView is displayed to the user. I know the row count is correct as when I add/remove a record the row count correlates by incrementing/decrementing.
View 1 Replies
Nov 2, 2010
I want to be able to create the checkbox control object in a gridcontrol and place it in every cell in a column because it has the functionality
I need with optional text built into the control. Does anyone know how to do this using vb.net, not C#.
View 5 Replies
Nov 15, 2009
Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview
View 2 Replies
Oct 8, 2011
I was having a heck of a time populating a gridview combo box.I learned a ton in the last 48 hours but would really like to know the answers to the bottom three questions.You guys are the experts, so I'm hoping you will enlighten meBut the summary of it is below:I was never able to get the ComboBox to bind to the data source. I tried everything until I turned blue. So I went to the basics and coded all the automatic stuff. I'm curious as to why the automatic binding didn't work. Perhaps its because my gridview datasource was LINQ.Here is how I pulled it off. I hope someone down the road benefits from the last 48 hours of my delima:First of all, know that I have two drop down lists on my form, one is the GPField and the other is the BankField. These are already populated DDLs that are static. So I used them to cheat on the values instead of using enums.
Sub fillGPFieldListDDL(ByVal obj As Object)
Dim db As New CompanyDataDataContext
Dim myConn As New Connection With {.ConnCls = ConnCls}
[code].....
View 4 Replies
Jun 8, 2011
I have created a site in VB.Net and ASP.Net where a user types in a centre code and clicks on 2 buttons to retreive 2 GridView's of records from an SQL Server backend database.
View 1 Replies
Apr 22, 2009
Im trying to add data into a new column I have created in my gridview.[code]...
Now I need to go in and add data for the rows below the column. I have seen ppl saying I need to set it equal to a datafield but how do I create a datafield from scratch then?
View 2 Replies
Sep 19, 2010
I'm developing a user control that exports a grid view to many file formats, this control takes the gridview as a property, I need a code that returns the gridviews in the form if so that in design time user can choose one to export
View 3 Replies
Jan 25, 2012
I found out how to keep track of the currently expanded grouped rows by using 2 events:
- gridview.GroupRowExpanded
- gridview.GroupRowCollapsed
Where I increase or decrement an integer that keeps track of how many group rows are currently expanded. I am now tackling the problem of what to do if the user expands or collapses all of the group rows. I currently know when this is done by checking the e.RowHandle. Any way to find the total number of groups rows currently in the GridView (something like rowcount for normal rows) so I know how many to set the tracking integer to.
For Example: If my current count is 2 and the total number of groups are 15 then when the Expand All is fired the current count is set to 15 rather than 3.
View 1 Replies
Dec 5, 2011
When I have changed the name of a table field name none of my combo boxes or grid views work properly. The TableAdapter still refers to the original name. Is there an easy way to make the change propergate through the program or do I have recreate all my TableAdapters.
View 5 Replies
May 12, 2009
I've created a Gridview control that pulls some data from my database, but doesn't display all of the information I'm hoping it gathers. I choose not to display the primary key for user interface purposes, but require that key for basic operations on the grid.I'm currently attempting to add a "Delete" option to the table, but unfortunately I'm having very little luck. Here's my .aspx file.
<asp:GridView ID="ManagerList_GV" runat="server"
AutoGenerateColumns="False" AllowSorting="True"
DataKeyNames = "ManagerID" OnRowEditing="editManager"
[code].....
View 2 Replies
Mar 2, 2012
i just write code for application, in which data is get by user and entered data is to print in a particular format?give me a code for vb.net button by which after click on it will print entered data?
View 1 Replies
Jul 6, 2011
Ypos = TopMargin + Count * PrintFont.GetHeight(ev.Graphics)
ev.Graphics.DrawString(ROData(x, 3), PrintFont, Brushes.Black, LeftMargin, Ypos, New StringFormat())
Count = Count + CInt(ROData(x, 4))
The above line prints the data contents of the ROData array in position three. I would like to be able to assign a specific position accross the line to have the printer print the data at without left padding the array data.
View 1 Replies
Feb 15, 2012
i have a form which search data in specific date and show result in the datagridview, what i want is that when delete button is clicked all datas that in the datagridview will be deleted sameway in the database
View 3 Replies
Dec 17, 2009
how to focus a particular Row in devexpress
View 4 Replies
Feb 12, 2010
I want to add CheckBox at DevExpress's xtraGrid columm so for this what should i do
View 1 Replies
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
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
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
Jun 16, 2011
what version of devexpress is more subtable for vb.net 2008?
View 1 Replies
Jan 3, 2010
How to print data from datagridview in tabular form?
View 2 Replies
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
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
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