超简单问题请各位老师闲暇之余指点一下 当我用鼠标选择Gridview的某行与某列交汇的CELL时,如何获取这个CELL对应的列的名称 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 主要是事件确认当前在那一列,gv.colums[x].Text; /// <summary> 4./// 保存 5./// </summary> 6.protected void btnBC_Click(object sender, EventArgs e) 7.{ 8. string save_cblJL = ""; 9. for (int i = 0; i < this.cblJL.Items.Count; i++) 10. { 11. if (this.cblJL.Items[i].Selected == true) 12. { 13. save_cblJL += this.cblJL.Items[i].Value + ","; 14. } 15. } 16. 17. string[] save_Excel = save_cblJL.Split(','); 18. 19. for (int j = 0; j < save_Excel.Length - 1;j++ ) 20. { 21. if (save_Excel[j].Equals("全部记录")) 22. { 23. toExcelClk(gvwjdccx, 3); 24. } 25. else if (save_Excel[j].Equals("当前页")) 26. { 27. toExcelClk(gvwjdccx, 2); 28. } 29. else if (save_Excel[j].Equals("当前记录")) 30. { 31. toExcelClk(gvwjdccx, 1); 32. } 33. } 34.} 保存Excel代码: /// <summary> 4./// 保存 5./// </summary> 6.protected void btnBC_Click(object sender, EventArgs e) 7.{ 8. string save_cblJL = ""; 9. for (int i = 0; i < this.cblJL.Items.Count; i++) 10. { 11. if (this.cblJL.Items[i].Selected == true) 12. { 13. save_cblJL += this.cblJL.Items[i].Value + ","; 14. } 15. } 16. 17. string[] save_Excel = save_cblJL.Split(','); 18. 19. for (int j = 0; j < save_Excel.Length - 1;j++ ) 20. { 21. if (save_Excel[j].Equals("全部记录")) 22. { 23. toExcelClk(gvwjdccx, 3); 24. } 25. else if (save_Excel[j].Equals("当前页")) 26. { 27. toExcelClk(gvwjdccx, 2); 28. } 29. else if (save_Excel[j].Equals("当前记录")) 30. { 31. toExcelClk(gvwjdccx, 1); 32. } 33. } 34.} 35.#endregion 保存 C#中调用函数的参数更新SQL数据库 如何用c# winfrom做一个数据库设计软件? 多线程读写问题 有谁用过starteam sdk,我想实现checkout by label 无法安装 SQL Server 2005 动态添加的button如何添加click事件? C#中的乱码问题,寻求解答 窗口间怎么传递引用类型 窗体的布局问题! 如何在C#中获得本地路径(分不够可以再加) C# 广播问题! 菜鸟 求助 !!求大虾们指点
4./// 保存
5./// </summary>
6.protected void btnBC_Click(object sender, EventArgs e)
7.{
8. string save_cblJL = "";
9. for (int i = 0; i < this.cblJL.Items.Count; i++)
10. {
11. if (this.cblJL.Items[i].Selected == true)
12. {
13. save_cblJL += this.cblJL.Items[i].Value + ",";
14. }
15. }
16.
17. string[] save_Excel = save_cblJL.Split(',');
18.
19. for (int j = 0; j < save_Excel.Length - 1;j++ )
20. {
21. if (save_Excel[j].Equals("全部记录"))
22. {
23. toExcelClk(gvwjdccx, 3);
24. }
25. else if (save_Excel[j].Equals("当前页"))
26. {
27. toExcelClk(gvwjdccx, 2);
28. }
29. else if (save_Excel[j].Equals("当前记录"))
30. {
31. toExcelClk(gvwjdccx, 1);
32. }
33. }
34.} 保存Excel代码: /// <summary>
4./// 保存
5./// </summary>
6.protected void btnBC_Click(object sender, EventArgs e)
7.{
8. string save_cblJL = "";
9. for (int i = 0; i < this.cblJL.Items.Count; i++)
10. {
11. if (this.cblJL.Items[i].Selected == true)
12. {
13. save_cblJL += this.cblJL.Items[i].Value + ",";
14. }
15. }
16.
17. string[] save_Excel = save_cblJL.Split(',');
18.
19. for (int j = 0; j < save_Excel.Length - 1;j++ )
20. {
21. if (save_Excel[j].Equals("全部记录"))
22. {
23. toExcelClk(gvwjdccx, 3);
24. }
25. else if (save_Excel[j].Equals("当前页"))
26. {
27. toExcelClk(gvwjdccx, 2);
28. }
29. else if (save_Excel[j].Equals("当前记录"))
30. {
31. toExcelClk(gvwjdccx, 1);
32. }
33. }
34.}
35.#endregion 保存