User Profile

Collapse

Profile Sidebar

Collapse
Firas2014
Firas2014
Last Activity: Dec 17 '14, 09:23 PM
Joined: Sep 13 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to fetch all rows inserted in datagirdview in c#

    I fetch maxid row to view in datagridview using the following code
    Code:
     public static DataTable GetMaximpID()
            {
                string strconn = AlShehabi.Properties.Settings.Default.NewSalariesDBConnectionString;
                SqlConnection conn = new SqlConnection(strconn);
    
                if (conn.State == ConnectionState.Closed)
                {
                    conn.Open();
                }
    ...
    See more | Go to post
    Last edited by Rabbit; Sep 14 '14, 08:05 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • Firas2014
    started a topic how to delete multi rows in datagridview in c#

    how to delete multi rows in datagridview in c#

    hi
    I delete rows in datagridview using chcekbox column
    I write the following code

    Code:
    private void btndelpay_Click(object sender, EventArgs e)
    {
    DialogResult dr = MessageBox.Show("delete row", "do you want to delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
    if (dr == DialogResult.Yes)
    {
    DataGridViewRow row = new DataGridViewRow();
    ...
    See more | Go to post
    Last edited by Rabbit; Sep 14 '14, 08:04 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • Firas2014
    started a topic condition for add new row in datagridview

    condition for add new row in datagridview

    I have two table the first is called Imprrests and the second is called ]IprestsPays. There is an Imprest_ID column that is primary key in [icode]Imprests[/code] table and foreign key in ImprestsPays table

    Imprests table consists the following columns:
    Code:
    Imprest_ID,  Impres_value,  Imprest_date,    Employee_ID
    Where Employee_ID column is primary key in Employees table and foreign key in Imprests table.

    ...
    See more | Go to post
    Last edited by Frinavale; Sep 22 '14, 02:42 PM.
No activity results to display
Show More
Working...