Click here to Skip to main content

C#

    RSS: RSS Feed
Home > Forums > C#

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
Questioncan anyone help plz Pinmemberjrahma12:32 20 Nov '09  
AnswerRe: can anyone help plz PinsupporterMark Nischalke14:28 20 Nov '09  
GeneralRe: can anyone help plz Pinmemberdojohansen11:35 23 Nov '09  
GeneralRe: can anyone help plz PinsupporterMark Nischalke13:10 23 Nov '09  
GeneralRe: can anyone help plz Pinmemberdojohansen0:27 24 Nov '09  
Questionload combobox values into datagrid combobox PinmemberRonni Marker11:48 20 Nov '09  
AnswerRe: load combobox values into datagrid combobox PinmemberRonni Marker12:09 20 Nov '09  
ah forgot to drop in my code....
            frm_Rights frmRights = new frm_Rights();
            if (toolStripComboBox1.Text.ToString().Length != 0)
            {
                frmRights.label1.Text = toolStripComboBox1.Text.ToString();
                frmRights.dataGridView1.Columns[1].HeaderText = "User Name";
                //
                frmRights.dataGridView1.Rows.Add("", "user1", "16-08-1971", "16:00:00");
                frmRights.dataGridView1.Rows.Add("", "user2", "24-08-1983", "12:00:00");
                BindingSource bindCombo = new BindingSource();
                bindCombo.DataSource = toolStripComboBox1.Items;
 
                DataGridViewComboBoxColumn datagridCombo = new DataGridViewComboBoxColumn();
                datagridCombo.HeaderText = "Hello";
                datagridCombo.DataSource = bindCombo;
                frmRights.dataGridView1.Columns.Add(datagridCombo);
 
                frmRights.ShowDialog(this);
 
            }
 
The above code works well fine enough - only with the exception that it dont load the content into column 0 but just add a new column onto the datagridview.
Questioncodeproject template empty PinmemberRassler487:53 20 Nov '09  
AnswerRe: codeproject template empty PinmemberRichard MacCutchan8:16 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRassler4821:49 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRichard MacCutchan22:13 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRassler486:37 21 Nov '09  
Questionrequest: fixing a codeproject programm Pinmemberno_idea7:40 20 Nov '09  
AnswerRe: request: fixing a codeproject programm PinmvpDaveyM699:18 20 Nov '09  
GeneralRe: request: fixing a codeproject programm Pinmemberno_idea11:16 20 Nov '09  
GeneralRe: request: fixing a codeproject programm PinmvpDaveyM6917:29 20 Nov '09  
GeneralRe: request: fixing a codeproject programm Pinmemberdojohansen11:50 23 Nov '09  
QuestionAlter table in dataset Pingroupdaniel kuperberg7:36 20 Nov '09  
AnswerRe: Alter table in dataset Pinmemberdojohansen11:53 23 Nov '09  
Questionbetter way to make function returns PinmembernetJP12L7:13 20 Nov '09  
AnswerRe: better way to make function returns Pinmemberstancrm7:15 20 Nov '09  
GeneralRe: better way to make function returns PinmembernetJP12L7:28 20 Nov '09  
GeneralRe: better way to make function returns [modified] PinmemberSaksida Bojan7:34 20 Nov '09  
GeneralRe: better way to make function returns PinmembernetJP12L7:50 20 Nov '09  
GeneralRe: better way to make function returns PinmemberSaksida Bojan7:59 20 Nov '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120210.1 | Last Updated 14 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid