Friday, July 1, 2016

(#2) C# Printings using Printing Controls In Urdu - Coding DataGridView

1 comment:

  1. if (e.Button == System.Windows.Forms.MouseButtons.Right)
    var hti = SaleInvoice.HitTest(e.X, e.Y);
    SaleInvoice.Rows[hti.RowIndex].Selected = true;
    contextMenuStrip1.Show(SaleInvoice, e.X, e.Y);

    int index = SaleInvoice.CurrentCell.RowIndex;
    HideQuantity.Text = index.ToString();

    SaleInvoice.DataSource = null;
    SaleInvoice.DataSource = cart;

    Rows cannot be programmatically removed unless the DataGridView is data-bound to an IBindingList that supports change notification and allows deletion.

    sir i receive this issue any help please