Click here to Skip to main content
15,905,867 members

Comments by Brijesh C G (Top 4 by date)

Brijesh C G 20-Feb-24 3:17am View    
The debugger says that .

This exception was originally thrown at this call stack:
[External Code]
CafeManagment.Item1Form.ItemGV_CellClick(object, System.Windows.Forms.DataGridViewCellEventArgs) in Item1Form.cs
[External Code]
CafeManagment.Program.Main() in Program.cs
Brijesh C G 20-Feb-24 2:50am View    
Iam going to take the values from the grideview to the textbox's Iam getting error in the last line.

txtitemprice.Text = ItemGV.SelectedRows[0].Cells[3].Value.ToString();

in the table I have a data of
CREATE TABLE [dbo].[TblItem]
(
[ItemNum] INT NOT NULL PRIMARY KEY,
[ItemName] VARCHAR(50) NOT NULL,
[ItemCat] VARCHAR(20) NOT NULL,
[ItemPrice] INT NOT NULL
)
Brijesh C G 7-Sep-20 13:28pm View    
Thanks for your support
Brijesh C G 7-Sep-20 13:27pm View    
Thanks for your support