Grids Get Empty When Click On Some Other Tab?
Dec 9, 2010
I have a question, I have a combo box, which when changed fills the data grid. Now Wen I change the Tab and come back to same tab again(one containing the combo box)..the value of combo box remains there, however the grid gets empty. I need this data to be maintained till the user selects another value from drop down.
View 1 Replies
ADVERTISEMENT
Nov 11, 2009
I am using Visual Basic.Net 2003 with an Access 2000 database.
An integral part of the program that i'm working on is a DataGrid which I am filling from three different queries, based on the user's input. The Grid properties are coded with specific requirements for each of the queries. I have two simple (hopefully) problems.
1) There is no scroll bar on the grid and I can't find a property or event that will allow me to add the Vertical Scroll Bar. How do I do that.
2) The grids contain only four columns each. I want the user to be able to click on a cell and populate four string variables.
View 3 Replies
Oct 13, 2010
Data retrieve successfully in the combo box. But first look on combobox is look empty until i click the side button of combo box. I want that combobox show first line of data without click the side button.
View 1 Replies
Nov 29, 2011
i have a user name, password and a calendar button which when click, a calendar appear and insert the date selected into the date textbox field, and a submit button. After, i key in value for user name and password and click on the calendar button, the password textbox field because empty. So how can i going to stop the password textbox field to become empty when i click i the calendar button?? i set visible calendar only when click on the button
[Code]...
View 2 Replies
Apr 15, 2012
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If ListBox1.SelectedItem IsNot Nothing Then
[Code].....
View 3 Replies
Aug 8, 2009
How to validate all empty text box in a form on button click? If text box empty change color.
View 9 Replies
Feb 2, 2010
i'm using vb 2008 and i'm wondering if theres any way to get the gui grids back (like in vb 6) and to turn off/make snap less sensitive..
View 2 Replies
Dec 15, 2011
Im using a datagrid for user to enter input. However,im restricting the grids to some value.My grid is actually not bounded to any database. so,here is my requirement: whn the form is getting displayed,all grids are getting displayed.,which dont want.,only row2 shld get displayed to user after he'l finish entering values in row1.. im using vb.net as front end and access as backend..
View 8 Replies
Nov 23, 2010
Try something along these lines:
TextBox1.Text=(dt1.rows(DataGrid1.CurrentRowIndex).item(0).tostring)
where dt1 is the datatable you're using as the data source and you want the data from the first column of the grid to be shown in the text box.
dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('381571b4631840c6b8a8abfe5b54ed97')
View 2 Replies
Sep 22, 2011
I have two grids inside a TabItem and in the code-behind I want to be able to add controls to both grids and have all the controls visible at run-time. Currently at run-time the controls added to "Grid3" are not visible while he controls added to "Grid4" are visible.The overlapping grids have the same rows but a different set of columns.I'm trying to do this with two grids so that I can vary the number of controls I can add per row in the code-behind by adding the controls to one of the two grids.Here's the XML:
<Grid Name="TabControlGrid" Margin="20,171,0,70">
<TabControl >
<TabItem Header="Tab1" >[code].....
The controls in the XML are just place holders for the controls I am adding to the grids in the code-behind.
View 2 Replies
Aug 17, 2010
How are crossword puzzle grids made? I have written a program to generate a puzzle, my problem is the GUI part.I ended up using Visual Basic (VB) because I'm more familiar with that language.However, eventually I have to write this in Java. So far the only way I am displaying the results in a grid-like format is using two controls Groupbox with a Label inside it.This way I can put the number to the word's clue in the title line of the Groupbox, and the individual letter in the Label. To make the cell in the grid editable (my goal for a different version of the puzzle), I guess a Textbox would have to replace the Label.The GUI for real online (professional) crossword puzzle grids is much nicer than this.I know there is a way to combine controls to make a customized one. Even if this works in VB, I'm not certain if it can be done in Java, therefore, I really don't want to go that route (unless someone knows how make customized controls in Java). I have searched the net and looked in books on games, VB and Java with no luck.I need something that I can grow dynamically depending on the grid size needed to hold the content.
View 1 Replies
Jun 29, 2010
i have a data grid in my form.It has 3 colums.On clicking the second col I want to put a value of 1 in there.I tried using datagrid click event but nothing happens in fact the the program wont even go there.[code]
View 2 Replies
Mar 23, 2010
I am trying to use a grid to display datasets. The database that I am using is not on my local machine. I have to dial in and log in to the database. We are using an image database. I was shown by my boss that he uses MSFlexGrid, but it appears that is no longer available on the newer versions of Visual Studio (he is using VB6). I was wondering if there was a way to display these grids without going through the Data Sources?
View 4 Replies
Aug 9, 2009
I'm curious what we all are using to display grids of data.I keep falling back to LISTVIEW's in DETAIL mode - they visually look nice to me. But I'm always writing code to load them from datatables and such - lots of work.DATAGRIDVIEW's - not so nice looking. Of course we can edit them easily - and they bind really easily
View 2 Replies
Nov 20, 2009
Starting to design an application and wondering if its ok to have only one form as the application which could hold up to 15 gridviews separated in tabs etc. with a navbar as navigation on the left. Is this too much or ok? Is it better to have one gridview per form? What is the norm?
View 6 Replies
Jul 15, 2010
I'm reading in an XML file, to a DataSet. This contains two tables and the relationship is automatically created. I'm using two DataGridViews in an attempt to display the master and detail data.
If I set the datasource of the grids as follows, then the detail view updates correctly:
[Code]...
View 3 Replies
Jan 20, 2012
I am new to WPF but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.[code]
View 6 Replies
Jan 20, 2012
I dont know if this has been answered but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.is there an effective way to do this?
here is basically what i have for code
<Grid x:Name="ParentGrid" Margin="0" >
<Grid.RowDefinitions>
[code]....
View 2 Replies
Feb 8, 2010
I have two grids displaying records of employees like name, job no, and position . Now I have to swap their jobs from Emp A to Emp B which is from one grid to other.
View 1 Replies
Jul 12, 2011
I have a bit of a weird issue. We use DevExpress controls to do all our Windows Form development. Anyway, I found a perfect use for the DataRow.SetParentRow/GetParentRow methods in my grid. So I created a DataRelation, added it to the DataSet and bound it as the data source for my grid. The issue is I now find this:On my grid. It seems to be the DataRelation (when I mouse over it the tooltip is the DataRelation name).
View 1 Replies
Feb 13, 2011
I have looked at the answers in the forum and some seem dated. I an an old vb2 person and need to move up. I understand sql very well and use complex queries. First test project and trying to add multiple tables to a data grid (Only Form in project).I used the Data wizard to add the Access data base and worked by way through to near the end. The query works in the wizard and returns the correct rows. The error message is "The solution returned by the new query differs from the base query."
During the creation process I selected all the tables. Reading some of the old anwsers I get the inpression that VB 2010 does not handle multiple tables in a datagrid (forum items go back to version 2008).
View 11 Replies
May 14, 2009
I have a DataGridView that has some columns with dates. It binds to an in-memory Datatable which gets loaded from an string array of data passed back from the backend Some of the rows returned have nulls for the date columns. Solution 1: If I define the Date column in the DataTable as "string" I can easily convert those nulls to empty strings and display it in the grid as empty strings (desired results). However, if the user clicks on the date column header to sort by date, it doesn't order the rows as you want. You get a purely string sort order. Not acceptable
[Code]...
View 2 Replies
May 25, 2012
I have been trying to find and/or think up a way for data to automatically update a data table.I have a log that shows all the customers that came in today with various information. There could be twenty or thirty employees adding to this log or updating or doing things with that customer. This information is in a Data Table on a ASPX page in Visual Studio 2010 that the code is binded in the aspx.vb page that is calling a page in my APP_CODE database file that calls a query in my Database to get the information.My question is could someones actions on a different computer make my computer refresh or to re-bind that data.I have thought of some kind of timer/counter maybe that looks to see if the count of the log is different.
View 2 Replies
Jun 28, 2010
This must've have been asked before but I couldn't locate it. In a mixed code project (VB and C#) we were debugging some old Visual Basic code where a statement as follows could be found:
If Request.Params("xxx") <> "" Then
'do something
I considered this a bug as Request.Params could be null, in which case the statement would've become false which wasn't the idea. So I thought. I just found out, -- probably for the tenth time and I will keep forgetting -- that the following two statements are not equal, while Nothing in VB should be equal to null in C# (thought I):
if(String.Empty == null) // always false
If String.Empty = Nothing Then ' always true
Should I dismiss this as a typical Microsoft backward compatibility effort, or should I consider this a huge error in the VB.NET compiler? Does anybody know the Microsoftean opinion on this oddity?
View 3 Replies
Mar 7, 2012
i'm trying to pass a variable between two datagrids. The first is on an main form, and the second is in a dialog form.
I tried using functions and also through public variables like this:
Invoice_new (Parent FORM):
Controls:
DatagridView: invoice_items
Public WriteOnly Property ValueFromChild() As String
Set(ByVal Value As String)
[Code]....
View 1 Replies
Aug 11, 2010
I have a array of strings and I am looping through them, but the string might be empty so I am trying this:
[Code]...
View 3 Replies
Oct 2, 2009
I am having trouble with a separate program that keeps saying Adobe flash is not installed. And I have tried everything but it still wont go away (that was off topic a bit). I want to create a program that will auto click the words "Click Here" if the error message shows. Because if I click there then it will work normally until it pops up again.
View 3 Replies
Jan 27, 2011
I have a situation where I am handling both single & double mouse click events on a form. In both cases something has to be loaded, however when a double click occurs, I do not wish to execute the code attached to the single click event.Is there a way to intercept the mouse click's and check if double or single and then execute the right event appropriately?
View 2 Replies
Feb 26, 2010
I created a button control ,, by double clicking only the process was going on,,when iam single click the button nothing is to be happenend,,so i want to change into single click insted of double click........here my coding is given below.......
<asp:Button ID="getrec" UseSubmitbehavior ="false" runat="server" Style="left: 30px; position: relative; top: 0px; z-index: 101;"
Text="Get Record" />
[CODE]...
Here the coding is all are correct but the problem is when double clicking the button only it was worked ,,,iwant want to change it into single click
View 1 Replies
Jul 29, 2011
I want to create a simple autoclick program. What I want to to is a program that makes a click were the mouse cursor is at every 5 minutes (or at any defined period of time) for instance.
View 4 Replies