Test1.cs 804 B

123456789101112131415161718192021222324252627282930313233
  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.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace 优软MES
  11. {
  12. public partial class Test1 : Form
  13. {
  14. public Test1()
  15. {
  16. InitializeComponent();
  17. }
  18. private void pagination1_Load(object sender, EventArgs e)
  19. {
  20. string[] field = { "*" };
  21. pagination1.BindDataToNavigator(dataGridView1,"bom",field);
  22. }
  23. private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
  24. {
  25. if ((int)Control.ModifierKeys == (int)Keys.Control + (int)Keys.Alt && e.KeyCode==Keys.S) {
  26. }
  27. }
  28. }
  29. }