expert, I had a problem in C# datagridview. I want display last month data or ?days only when form load.I know use SQL query. But the problem is at datetime and string. my idea is today date - 30 days.private void OT_Load(object sender, EventArgs e){ConnectionStringSettings conSettings = Configurati ...
I`m learning C# end need some help with my assignment. I have Form with DataGridView on it end one Button. When I click Button, I should get SUM from only selected cells into Message Box. How can I do that? ...
I've been working on an Application wich uses an MySql database, I got an DataGridView wich loads the database and displays is content, What i need it when i press an button it removes my selected row, And i'm sure how to proceed, Any advise/code snippets or suggestions are welcome greets Ben ...
I have made a few applications in Visual Foxpro and now I'm trying to convert some to C# and use DBF files as is. I have tried successfully to "load" the DBF file into a DataGridView but it does not show empty date as blank but "12/31/1899" instead. Is there any way to circumvent ...
Hello, I am finishing up my first C# application and I have one wrinkle to iron out. My form has a number of controls at the top but the majority of the area is filled with 3 datagridview controls. The datagridviews were dragged on and sized in the design view. My issue is at runtime if I resize the ...
Helloi had a datagridview with data in it and i wanted to display the selected row in textboxeshere's the code i tried by i think its totaly wrong Private Sub DataGridView_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellCl ...
I have a windows application with a DataGridView. I have successfully bound the DataGridView to a datasource (datatable based on database query). I would like one of the columns to be a ComboBox that is selected to the correct datasource value, yet upon click displays data from a separate dataset. I ...
Okay I have a datagridview with multiple rows and columns of data. I set the grid to Readonly == true by default, but have a method that when the user double clicks the datagridview, it's gets the current cell the user is clicking and then uses this line of codedataGridView1 [locX, locY].ReadOnly = ...
Am new to developing applications with C#, am use to using C# with asp.net.Not sure how to 'explain' what the problem is, but...In asp.net, using the GridView, I could just double click on it and that would start the 'SelectedIndexChanged' event and then if I wanted to get the datakeyvalue of the se ...
I have a DataGridView control with the FullRowSelect SelectionMode, chosen (MultiSelect=False). So I select a row and all cells in that row go blue.I don't want the left-hand cell to go blue when I select a row, as this cell is colour-coded (background colour of cell is either red or green and I wan ...
I've made a listview, and need to retrieve the value of the selected index. In simple words, if someone clicks the third item in the listview, the program needs to return the integer 2.Anyone knows how to handle this? ...
I have a couple of DataGridView refreshing problems.The first one is how to get the datagrid to refresh the data the fastest. I used dataGridView1.Refresh() to refresh the data as it is coming in, but it causes the mouse to lag, without doing the refresh() the mouse and clicking capabilities are fin ...
I've got a problem with my project... in short I've got a mysql db bond through a DataSet and BindingSource - if I'm editing like a user the gridview then all changes are commited to the db no problem...But I need the user to responsibly change foreign keys - what I have done is: if the user doublec ...
all I've got a question.I have a datagridview control with autocomplete features with it. And was wondering if it would be possible to add 'Tooltips' to the suggested entry. What I'm trying to accomplish is what Visual Studio has done with their intellisense/auto complete feature.For example when yo ...
Hi, Ive been trying to calculate standard deviation from the data in my datagridview.I have manage to work out how to get to the last value but would like to display in a chart so i need to have some kind of running total like you have in Excel. For instance a 20 day Standard deviation would be disp ...
Hello! any expert can help me. Please.I'm design a form with click Search button to search date and display data in datagridview. but when I set my access database OTDate column as Date, It will cause data mismatch problem. however, set OTDate column as Text is fine. But it will difficult when make ...
who can help me??I got a datagridview, one of column in datagridview is checkbox call Finish. So that, when the Finish checkbox is checkbox, I want certain row background color become yellow color.when each time I run the program, it will display yellow color when that row Finish column was checked. ...
I want to fetch a cell value of currently selected row of datagridvie. For this I am usingprivate void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e){DataGridViewRow currentRow = dataGridView1.SelectedRows;ID = Convert.ToInt32(currentRow.Cells[0].Value);textBox1.Text = Convert.To ...
i have datagrid that show record from odbc database. i need help in delete and editing records. when the datagrid open you can edit and deleting records but How you save the editing or the deleting? ...
in the below quote i took from Devasya i implemented in SQL MS VS 2008, and there is an error coming any idea about it????The code is : db.openConnection();int j = 0;int k = 0;string[,] a = new string[100, 100];string data = "\"";for (k = 0; k < (countRow - 1); k++){for (j = 0; j ...
I am getting some strange behavior with a PHP page I am coding:I have some code that displays a MENU (with the letters of the alphabet): <FORM NAME="getletter" ACTION="Service_Dates_detail.php?id_Event=<?php echo $id_Event; ?>" METHOD="POST"><table width= ...
I am having a problem with my C# datagridview. When I add data into it, it doesnt auto update. And nothing I found online works to update the view for the user during runtime. I've used refresh(), update(), invalidate(). Nothing seems to work. Can anyone help me out with this problem??USING .NET fra ...
all this is my first post.The problem im having is with a simple script i made a year back and now trying to get working on mobile.It's basicaly getting twitter feeds and displaying the amount of feeds you want per person.the problem is, when clicking on the username input box and then typing the us ...
I have to write a program that follows these guidlines.Write a program that displays a menu with the following choices to the user.A - Find the largest # with a known quantity of numbersB - Find the smallest # with an unknown quantity of numbersC - QuitPlease enter your choice ___This menu needs to ...
kk. im newbie, i copied this script from a site,,,,,, its a random number generator. it works pretty darn well. but I want to put something in at the beginning of the script to start when you type something, and then at the end say something if the number is above, or below a certain amount ( if n ...
Hi, I've written an application in c# and selected Release version, set everywhere I can see to remove debug and trace etc, but it doesn't seem to work. I've put a deliberate bug into the application just so I can check and whenever the bug happens I get a window showing a call stack, loaded assembl ...
I am trying to work it with to formsKeep in mind this is a option to select whichlike Column 1ABCD Column 2 AABBCCDDBasically I want to set up True Groups and False Groups LikeIf "A" selected then the only true relationship would be "AA" If "B" is selected then the only ...
This is a random number generator that generates about 80 or so numbers, ive disabled most of them by turning how many they put out to 0 except for 1 that is supposed to generate a number between a range rng.inRange(10, 1)I have a conditional if, if it is lower than 5 cout<< miss else << ...
I have an easy HTML file with three forms: A, B, and C. Form A consists solely of a dropdown with two options available to select: Option 1 and Option 2.Form B and C are set to be hidden when the page loads, by using an onLoad event. Depending on the value chosen from the dropdown on Form A, either ...
I am trying to get 1 text box displayed in the top right table when the 'Choice A' is selected; 2 text boxes displayed in the same area when 'Choice B' is selected; or 4 text boxes in the same area when 'Choice C' is selected.Currently, I have other radio buttons display when one of the choices is s ...
I am having the darndest time finding an easy solution to the following problem:I need a form to have a drop down list with 3 options, we will call them Options A, B and C. If Option A is selected, I need the page to give the user a text field called X.If Option B is selected, I need the page to giv ...
BASIC SHORTCUT KEYSAlt + F File menu options in current programAlt + E Edit options in current programF1 Universal help (for all programs)Ctrl + A Select all textCtrl + X Cut selected itemShift + Del Cut selected itemCtrl + C Copy selected itemCtrl + Ins Copy selected itemCtrl + V PasteShift + Ins P ...
I have tried a few and can't get them to work. I liked code blocks but when i ran my program nothing happened it was the Hello world program they auto generate i just wanted to test it out. There was no output. the program ran and nothing happened.I am used to Visual Studio where the program is run ...
I want to ckeck if an entry of an enumeration type is in use with in a module. Alpha={A, B, C} I want to check if C is selected in an object of a module.I can iterate all objects and find this out. But, is there any optimized solution? ...
I would like to reject changing the selection in a list view. I know that the LVN_ITEMCHANGING notification is supposed to be used for this purpose, but it is seriously inadequate.For example, say you have a list view with thumbs that look like this:--------[A] [B][C] [D][E] [4]--------For simplicit ...
any recommend how to do this, will this need database to store infomation to pull out when need or just using case or if else statement?if user select a checkbox or combine checkboxes when they click on next the script will give them the more options base on what they have selectedsomething like thi ...
Any help is awesome!I have two forms. An insert page for the end user and an edit page for the admin. The insert page has several fields that are added by the user with a javascript button (for multiple products of same kind). The edit page is a copy of the submitted form with "accept" and ...
How to disable the value 4 andvalue 5 from second listbox when only C is selected from the 1st list box. Now second list is disabled. I have to enable the list box but only values of 2nd list box should be disabled when C is selected.<html><head><script type="text/javascript ...
I downloaded the latest wubi.exe and installed wubi on my Windows XP box (Service Pack 3). The iso downloaded was ubuntu-8.10-desktop-i386.iso.I have two disks on my machine, each of which has two partitions:C:, D:, and H:, I:. H/I was my old smaller boot disk that I kept connected as a backup. I bo ...
I was installing ubuntu 10.10 and in the advanced partitioning screen, I was trying to resize my 500GB SATA partition (on my laptop) to make space for ubuntu. I selected the biggest partition (C Drive), selected to change it, entered the new size (which was 15 GB less), selected ext4 as the file sys ...
I'm currently writing a program to dynamically test and record the execution time of C code. This means that my main program is adding instrumentation code to the original .c code selected and then that new source file is compiled with a command line compiler.When I try to compile the below code wit ...
I am staring at my screen not knowing how to proceed. Background: I am a competent programmer C++ (windows apps/drivers/ services) that has not moved beyond VS6. I have done some RAD projects with VB 1-6, and just rewrote one over a weekend in VB.NET 2005. That was a pleasure becasue the object orie ...
I have a form that is used to make a backup of the database I am using. The name of the database is Movistar and the form is as follows:http://img405.imageshack.us/img405/2576/frmbackuplf5.gif (http://imageshack.us)The code is as follows:Private Sub cmdBackup_Click()Dim intResponse As Integer'Asks t ...
I am trying to convert the Javascript from a Klip Desktop Widget to be usuable in a html page. Unfortunately, I am rather weak at javascript and wondered if anybody could help me?Here is what the widget does:1) Logins in to Windows Live and set's it cookie2) uses the cookie to login into Xbox Live a ...
<?php// Last Modified 16th August 2007ob_start();session_start(); // Loads sessioninclude('templates/header.php'); // Header Templateinclude('../config/config.php'); // Includes configuration filesinclude('../lib/functions.php'); // Load all functions from Libraryif(!isset($_SESSION["usernam ...
candidates_answer.php<?php// Last Modified 15th August 2007include('../config/db.php'); // Includes Databaseinclude('../lib/functions.php'); // Load all functions from Libraryinclude('templates/select_candidates.php'); // Select candidate template$selected_candidate = sql_safe($_GET['candidates'] ...
Is it possible to have a selection within one list box activate/bring up another listbox.ExampleList box #1Option aOption bOption cIf Option a above is selected, the following list box would be displayed:Choice 1Choice 2 Choice 3However if Option b is selected a different listbox would be displayed: ...
Helo,I got this problem with a c# DataGridView in VS2005:The DataGridView has 2 columns: colArtigoGenerico, colArtigoFinal; and this columns are populated with data from 2 columns from a DataTable: "Detalhes".1st i populate the DataGrid with a Datatable using this code:string select = ...
I am trying to write a TableCellRenderer which changes a the color of a row on drag entry and exit. The goal is to change the background colour of successive rows of a JTable as another row is dragged over them. I have had a little success in implementing both TableCellRenderers and Drag Listener (A ...
I have a form with an item (Item 1) of type select list. The select list is based on static values, for example: 'A', 'B' & 'C'.I have another item (Item 2) in the form, also of type select list, based on a dynamic query. I want item 2 only to be displayed if value 'A' is selected in item 1. The ...