Click here to Skip to main content
15,913,296 members

Comments by indiancodinglove (Top 28 by date)

indiancodinglove 11-Nov-13 23:38pm View    
I have a datagridview and some textboxes. when I am click on the add button then all values show in datagridview now I want to sum of scooter in a textbox and motorcycle sum of in other textbox and total amount of purchase in other textbox which is only view at that time when the program running if I am deleting sum row in gridview then sum of scooter,motorcycle,amount will be delete at the running time
indiancodinglove 11-Nov-13 20:58pm View    
ok sir problem solved. thanks
indiancodinglove 10-Nov-13 21:30pm View    
I received the error:"Unable to cast object of type 'System.Data.DataRow' to type 'System.Windows.Forms.DataGridViewRow'

when I am using this code
private void button1_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow dr in objDT.Rows)
{
txtInvNo.Text = dr.Cells[0].Value.ToString();
txtPG.Text = dr.Cells[1].Value.ToString();
// etc...
Add_PO_Details();
}
}
indiancodinglove 10-Nov-13 7:54am View    
if u don't mind ,
dear sir please tell me how to add datagridview values directly.
indiancodinglove 11-Oct-13 4:34am View    
Sir its working thanks a lot.