fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. //this.dataGridView1.Rows.Add(0, 1, 2);
  18. //this.dataGridView1.Rows.Add(10, 11,12);
  19. //this.dataGridView1.Rows.Add(20, 21, 22);
  20. this.dataGridView1.Columns[1].ValueType = typeof(int);
  21. this.dataGridView1.Columns[2].ValueType = typeof(int);
  22. }
  23.  
  24. private void button1_Click(object sender, EventArgs e)
  25. {
  26. this.Text = ((int)this.dataGridView1[1, 0].Value *(int)this.dataGridView1[2, 0].Value).ToString();
  27. }
  28. }
  29. }
  30.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty