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
A

AxiliuM

@AxiliuM
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DataGridView doesn't display anything.
    A AxiliuM

    I cannot see them, the DataGridView is empty. Calin Tatar Where have you found the property "AutoGenerateColumns"?, I couldn't find it.

    C# question

  • DataGridView doesn't display anything.
    A AxiliuM

    Hello! I have 2 forms. The first has a DataSet with a table("Table1"), the second form has a BindingSource, BindingNavigator, DataGridView; //... Form1 fmMain=new Form1; //...Button click Form2 fmSecond=new Form2(); fm.ShowDialog(fmMain) //... private void Form2_Load(object sender, EventArgs e) { BindingSource.DataSource = ((Form1)this.Parent).DataSet; BindingSource.DataMember = "Table"; DataGridView.DataSource=BindingSource; BindingNavigator.BindingSource=BindingSource; } BindingNavigator shows that there are 100 rows and the position=1, but DataGridView doesn't display anything. But this code works: //... Form1 fmMain=new Form1; //...Button click Form2 fmSecond=new Form2(); fm.ShowDialog(fmMain) //... private void Form2_Load(object sender, EventArgs e) { DataGridView dt = new DataGridView(); BindingSource.DataSource = ((Form1)this.Parent).DataSet; BindingSource.DataMember = "Table"; dt.DataSource=BindingSource; dt.Parent = this; BindingNavigator.BindingSource=BindingSource; } Does anybody have some ideeas?

    C# question

  • A problem with DataBinding. [modified]
    A AxiliuM

    Thank you! :)

    C# help

  • A problem with DataBinding. [modified]
    A AxiliuM

    I have 2 tables >>Tb_orders (date, ... , id_cust1, id_cust2) >>Tb_customers(id_cust, name ...) and I need to edit the fields id_cust1, id_cust2 using ComboBox

    cBox1.DataSource = Tb_customers;
    cBox1.DisplayMember = "name";
    cBox1.ValueMember = "id_cust";
    cBox1.DataBindings.Add("SelectedValue", Tb_orders, "id_cust1");
    cBox2.DataSource = Tb_customers;
    cBox2.DisplayMember = "name";
    cBox2.ValueMember = "id_cust";
    cBox2.DataBindings.Add("SelectedValue", Tb_orders, "id_cust2");

    everything is clear but cBox1 and cBox2 have the same value. I dont know what I have to do..

    modified on Saturday, January 31, 2009 2:03 AM

    C# help
  • Login

  • Don't have an account? Register

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