Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

jeweladdict

@jeweladdict
About
Posts
33
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Assignment of read only location, class with const method trying to write to private member variable [modified]
    J jeweladdict

    you sir, are a god :D Saved me a lot of coding...

    C / C++ / MFC question data-structures

  • Assignment of read only location, class with const method trying to write to private member variable [modified]
    J jeweladdict

    I'm stumped on this one I have a class, with a private unsigned char array. I have a class method which is const. It is trying to write to the private unsigned char array, but I get the assignment of read only location. I can't touch the headers/remove the const because it is an inherited virtual function. How do I access the unsigned char array?

    modified on Wednesday, May 6, 2009 12:40 PM

    C / C++ / MFC question data-structures

  • Datagrid Checkbox is not getting binded to dataset/ access database
    J jeweladdict

    figured it out, i was not using a bool to bring in the database, rather a string

    C# database wpf wcf com help

  • Datagrid Checkbox is not getting binded to dataset/ access database
    J jeweladdict

    Also, I am getting: 'System.Windows.Forms.DataGridColumnStyle' does not contain a definition for 'TrueValue' 'System.Windows.Forms.DataGridColumnStyle' does not contain a definition for 'FalseValue' Using dotnet 1.1. Anyone know how to solve this?

    C# database wpf wcf com help

  • Datagrid Checkbox is not getting binded to dataset/ access database
    J jeweladdict

    I have followed another tutorial on adding checkboxes to datagrids and have gotten it to show up. The problem is that I cannot get the checkbox column to bind to my dataset column. I alway see gray checkboxes when I run. All of the other columns are binding correctly. Anyone know what I am doing wrong? Here is the code

    					DataGridTableStyle tableStyle = new DataGridTableStyle();
    
    		//specify the table from dataset (required step)
    		tableStyle.MappingName = "Invoice";
    
    		//STEP 2: Create a string column and add it to the tablestyle
    		DataGridColumnStyle DateColumn = new DataGridTextBoxColumn();
    		DateColumn.MappingName = "Date"; //from dataset table
    		DateColumn.HeaderText = "Date";
    		DateColumn.Width = 200;
    		tableStyle.GridColumnStyles.Add(DateColumn);
    
    		DataGridColumnStyle InvoiceNumberColumn = new DataGridTextBoxColumn();
    		InvoiceNumberColumn.MappingName = "InvoiceNumber"; //from dataset table
    		InvoiceNumberColumn.HeaderText = "Invoice Number";
    		InvoiceNumberColumn.Width = 200;
    		tableStyle.GridColumnStyles.Add(InvoiceNumberColumn);
    
    		DataGridColumnStyle RackNumberColumn = new DataGridTextBoxColumn();
    		RackNumberColumn.MappingName = "RackNumber"; //from dataset table
    		RackNumberColumn.HeaderText = "Rack Number";
    		RackNumberColumn.Width = 100;
    		tableStyle.GridColumnStyles.Add(RackNumberColumn);
    
    		/\*
    		DataGridColumnStyle PhoneNumberColumn = new DataGridTextBoxColumn();
    		PhoneNumberColumn.MappingName = "PhoneNumber"; //from dataset table
    		PhoneNumberColumn.HeaderText = "Phone Number";
    		PhoneNumberColumn.Width = 200;
    		tableStyle.GridColumnStyles.Add(PhoneNumberColumn);
    		\*/
    
    		//STEP 4: Add the checkbox
    		DataGridColumnStyle PaidColumn = new DataGridBoolColumn();
    		PaidColumn.MappingName = "Paid";
    		PaidColumn.HeaderText = "Paid";
    		((DataGridBoolColumn)PaidColumn).AllowNull = false;
    		//PaidColumn.TrueValue=true;
    		//PaidColumn.FalseValue=false;
    		PaidColumn.Width = 100;
    		tableStyle.GridColumnStyles.Add(PaidColumn);
    
    		DataGridColumnStyle PickedUpColumn = new DataGridBoolColumn();
    		PickedUpColumn.MappingName = "PickedUp";
    		PickedUpColumn.HeaderText = "Picked Up";
    		((DataGridBoolColumn)PickedUpColumn).AllowNull = false;
    		PickedUpColumn.Width = 100;
    		tableStyle.GridColumnStyles.Add(PickedUpColumn);
    
    		//STEP 5: Add the tablestyle to your datagrid's tablestlye collection
    		myDataGrid.TableStyles.Add(tableStyle);
    

    [IMG]http://i40.tinypic.com/34fo65j.jpg\[/IMG\] Here is a snapshot of my A

    C# database wpf wcf com help

  • Dataset with 6 columns, how to display only 3 in a data grid?
    J jeweladdict

    H:\AllBrite\AllBrite\Form1.cs(3702): 'System.Windows.Forms.DataGrid' does not contain a definition for 'Columns' using framework 1.1...

    C# csharp css asp-net tutorial question

  • Dataset with 6 columns, how to display only 3 in a data grid?
    J jeweladdict

    I found the asp.net answer, but it can't be applied to c#. Anyone know of a way to do this without creating a 2nd dataset to store it in?

    C# csharp css asp-net tutorial question

  • POS Application, printing control fonts (possibly using WORD API)
    J jeweladdict

    In order to open a cash register hooked up to my receipt printer, I need to send 'G' using the CONTROL font to the printer. Using PrintDocument does not work because all of the text gets turned into a picture before it gets printed and so the printer does not recognize the special font. The printers are on USB and Ethernet and so it's not as simple as sending a code over the desired port... how do I actually send the string to the printer? One way that I think will work is if I send a string to a WORD document with the specified font and print it (with visibility set to false to make it transparent). Can someone point me in the right direction to do so? Thanks!

    C# question json

  • Print to specific printer with a button
    J jeweladdict

    I want to have 2 buttons. Push button 'A' and it prints to a network printer. Push button 'B' and it prints to a connected usb printer. Is there a way to specify a printer when printing WITHOUT popping up the print dialog? thanks!

    C# sysadmin question

  • Restaurant POS Database Question (long)
    J jeweladdict

    I'm developing restaurant software for my family business and need some input as to how to implement an ordering system. I will have 2 computers networked together, one being at the cash register (REGISTER), and the other in the kitchen (KITCHEN). Here is the scenario that I'm envisioning. Waitress(er) takes the order, submits to the cash register. Order gets inputted into (REGISTER) and is stored into a database. Database will have 2 linked tables, the main table will have [table_number, number_of_people, total_due, date, order_number (primary key)] The second table will use order_number as the foreign key and then have order information[ quantity, item, subtotal]. I think I've got a handle on the REGISTER software... My problem is, what type of client software must be put onto KITCHEN so that it can monitor the database for changes? Ideally I would like a messageBox to pop up with the order information that can be dismissed when the order is completed. Would the CLIENT software check (every 5 secs?) the up to date of the DB? Not quite sure what to do. Please help :) Henry

    C# database help question business tutorial

  • Display Datagrid Decimal to 2 places
    J jeweladdict

    because the dataset is formatted as a decimal, and then the dataset is bound to the datagrid. Is there is a way to easily format the datagrid to show string.

    C# question

  • Display Datagrid Decimal to 2 places
    J jeweladdict

    current_item_data_row["MenuPrice"] = Convert.ToDecimal( targetRow["MenuPrice"] ) * Convert.ToInt32( this.textBox_OtherQuantity.Text ); /*******/ How can I change this so that 19.9 will be displayed at 19.90 (no $ pleasE) Thanks :) e

    C# question

  • Sending messages over LAN
    J jeweladdict

    thank you sir :)

    C# xml question lounge

  • Sending messages over LAN
    J jeweladdict

    I'm trying to create a restaurant point of sale system that has the ability to send messages (xml files) over a LAN. Basically I would like to send orders from a front desk/dining area to the kitchen. Can someone please point me in the general direction of what to look up in order to do so? I'm not familiar with LAN stuff at all... Thanks

    C# xml question lounge

  • keyup/keypress event for forms
    J jeweladdict

    works like a charm thanks :D

    C# tutorial question

  • keyup/keypress event for forms
    J jeweladdict

    How would i go about assigning the F12 key to focus on a textbox within a form? Meaning when a form is active, if the f12 key is pressed (doesn't matter which component is active) the focus will be set to a certain textbox. I know how to set the event when a certain component is active, but if i want to set a global keyup event, how would i do so? Here is the code for a textbox keyup: this.textBox_units.KeyUp += new System.Windows.Forms.KeyEventHandler this.textBox_units_EnterKeyPressed); private void textBox_units_EnterKeyPressed(object sender, System.Windows.Forms.KeyEventArgs e ) { if(( e.KeyCode == Keys.Enter ) || ( e.KeyCode == Keys.Return )) { this.textBox_upc.Focus(); } }

    C# tutorial question

  • Datarow and Dataset questions
    J jeweladdict

    Lets say i do this: DataRow dr1 = dataset1.Tables[0].NewRow(); I want to add dr1 to dataset2 but it says it is already in another dataset (dataset1) how can i clone/duplicate/copy dr1 so that i may add it to dateset2 as well? thanks!

    C# question

  • Datagrid to arraylist
    J jeweladdict

    There are plenty of articles on how to bind an arraylist to a datagrid, but how exactly does one get the arraylist back out of the datagrid? I have bound an arraylist to the datagrid, and allow users to change all values (decimal, string, checkbox) and would like to update my arraylist to match the changes. I guess there are two approaches, interate through each row of the datagrid, create a new object for my arraylist, and add it to a new arraylist... Or I could just go trhough and compare the objects in arraylist and that of the datagrid and update whatever has changed... Can anyone point me in the right direction as to how to approach this?

    C# regex tutorial question announcement

  • dataset sort and combine/consolidate
    J jeweladdict

    that works like a charm. Thanks!

    C# tutorial question

  • dataset sort and combine/consolidate
    J jeweladdict

    I guess this would be more of a datarow combining/merging question./..

    C# tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups