This is the error me getting.
I getting the function result while I exclude or hide comboBox column in gridView.
please give me a solution
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 27, 2013, 7:13 AM
Regards,
Iftikar
Iftikar HussainPosted Jul 27, 2013, 7:11 AM
Regards,
Iftikar
Bineesh ViswanathPosted Jul 27, 2013, 6:39 AM
please send the c# code to write in :-
private void dgvPurchaseDetails_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
}
Senthil KiumarPosted Jul 26, 2013, 4:18 AM
End Sub
Enable this Event, Automatically fix Error
Iftikar HussainPosted Jul 26, 2013, 3:40 AM
purchaseDetailsGridviewAll
Regards,
Iftikar
Bineesh ViswanathPosted Jul 26, 2013, 3:17 AM
My Stored procedure:-
ALTER PROCEDURE purchaseDetailsGridviewAll
AS
SELECT purchaseinvoiceNo, puchaseDate, voucherNo, purchaseId, venderName, grandTotal
FROM tbl_PurchaseDetails
My SP Class code
public void purchaseDetailsGridviewAll()
{
DataTable d = new DataTable();
d.Columns.Add("SINo", typeof(int));
d.Columns["SINo"].AutoIncrement = true;
d.Columns["SINo"].AutoIncrementSeed = 1;
d.Columns["SINo"].AutoIncrementStep = 1;
purchaseSp spPurchase = new purchaseSp();
d = spPurchase.purchaseDetailsGridviewAll();
dgvPurchaseDetails.DataSource = d;
}
and My frm.cs code:-
purchaseSp spPurchase = new purchaseSp();
decimal decA = spPurchase.RegisterCount();
purchaseDetailsGridviewAll();
txtvoucherNo.Text = decA.ToString();
this.dgvPurchaseDetails.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPurchaseDetails_CellEndEdit);
Iftikar HussainPosted Jul 26, 2013, 2:15 AM
Please check what value you are trying to enter in the cell. I think it has got some restriction. Please share your code.
Regards,
Iftikar
Ravi ShekharPosted Jul 26, 2013, 1:51 AM