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
M

Member 12899746

@Member 12899746
About
Posts
14
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    i need code for get selected column value from datagridview into array list //foreach (DataGridViewRow row in this.dataGridView1.Rows) //{ // if ((((bool)(row.Cells[this.invoiceNO.Index].Value)) == true)) // { // a.Add(row.Cells[this.invoiceNO.Index].Value); // } //}

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    i get my issue.... i need to get the value from DataGridView that was selected into array. can you write to me example code.

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    many thanks for your advice and your time.

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    no i'm not clinically insane.... but we are in a community to help each author.and i'm stacked.

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    did you have a time to take a look via teamviewr

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    this is debugger error(Specified cast is not valid.)

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    Specified cast is not valid.

    C# database help

  • I can not understand the error.....code bellow...for trans data from sql database to another
    M Member 12899746

    private void exprtbtn_Click(object sender, EventArgs e)
    {
    try
    {
    if ((this.dataGridView1.Rows.Count == 0))
    {
    MessageBox.Show("Please select Vouchers");
    }
    else
    {
    // HEaders Vouchers
    SqlConnection con = null;
    SqlConnection con2 = null;
    connClass cs = new connClass();
    con = new SqlConnection(cs.distiConn1);
    con2 = new SqlConnection(cs.sourceConn2);

                    ArrayList a = new ArrayList();
                    DataTable DT = new DataTable();
                    SqlCommand cmd = new SqlCommand();
                    SqlTransaction trans = default(SqlTransaction);
    
                    con.Open();
                    trans = con.BeginTransaction();
                    cmd.Connection = con;
                    cmd.Transaction = trans;
    
                    SqlCommand cmdLive = new SqlCommand();
                    cmdLive.Connection = con2;
                    SqlDataAdapter DR = default(SqlDataAdapter);
    
                    //foreach (DataGridViewRow row in dataGridView1.Rows)
                    //{
                    //    if ((bool) row.Cells\[this.invoiceNO.Index\].Value == true)
                        
                    //    {
                    //        a.Add(row.Cells\[this.invoiceNO.Index\].Value);
                    //    }
                    //}
                    //foreach (DataGridViewRow row in this.dataGridView1.Rows)
                    //{
                    //    if ((bool)row.Cells\[this.invoiceNO.Index\].Value == true)
                    //    {
                    //        a.Add(row.Cells\[this.invoiceNO.Index\].Value);
    
                    //    }
                    //} error in the anderline code
                    foreach (DataGridViewRow row in this.dataGridView1.Rows)
                    {
                        if ((((bool)(row.Cells\[this.invoiceNO.Index\].Value)) == true))
                        {
                            a.Add(row.Cells\[this.invoiceNO.Index\].Value);
                        }
    
                    }
                    int C = a.Count;
                    string str = "(";
                    int i = 0;
                    while (i < C - 1)
                    {
                        str += "'" + a\[i\] + "',";
    
    C# database help

  • Specified cast is not valid. i can't understand error
    M Member 12899746

    yes i'm its int

    C# help

  • Specified cast is not valid. i can't understand error
    M Member 12899746

    foreach (int VouType in DR)

    C# help

  • Specified cast is not valid. i can't understand error
    M Member 12899746

    public void FillCompVouType()
    {
    try
    {
    this.Cursor = Cursors.WaitCursor;
    con = new SqlConnection(cs.sourceConn1);
    con.Open();
    scmd = new SqlCommand("Select Distinct VouType From Table_name Where Colum=1 order by VouType", con);
    SqlDataReader DR = default(SqlDataReader);

                vochcombox.Items.Clear();
                DR = scmd.ExecuteReader();
                foreach (int VouType in DR)
                {
                    vochcombox.Items.Add(VouType);
                }
                while (DR.Read())
                {
                    this.vochcombox.Items.Add(DR.GetOrdinal("VouType"));
                }
                DR.Close();
                con.Close();
                this.Cursor = Cursors.Default;
    
            }
            catch (Exception ex)
            {
                this.Cursor = Cursors.Default;
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                if (con.State == ConnectionState.Open)
                {
                    con.Close();
                }
            }
        }
    
    C# help

  • i get an error (non-invocable member-- can't be used like a method) any help?
    M Member 12899746

    it's work......... manythanks

    C# help database question

  • i get an error (non-invocable member-- can't be used like a method) any help?
    M Member 12899746

    many thanks...but i get another error (Operator '==' cannot be applied to operands of type 'object' and 'bool')

    C# help database question

  • i get an error (non-invocable member-- can't be used like a method) any help?
    M Member 12899746

    foreach (DataGridViewRow row in this.dataGridView1.Rows)
    {
    if (row.Cells(this.invoiceNO.Index).Value == true)
    {
    a.Add(row.Cells(this.invoiceNO.Index).Value);
    }
    }

    C# help database 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