第一个问题,可以参考以下的,http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q856q 我正准备把这FAQ译成中文,以后就方便多了,请支持
第二个问题,人家都回答你了啊
第二个问题,人家都回答你了啊
解决方案 »
- 为啥要用10作为临界条件了。
- 在线等---能不能保存窗体的pictureBox控件中的图片?
- 给位大侠,能帮我看看这个线程哪里错了吗?
- C# 针式打印机连续打印的问题
- C# GDI+ 画线 线条重影
- 别人通过Post方法提交一个XML文档,我这里怎么获取?
- 数据库sql插入数据失败!!!
- .NET设计中是如何实现数据、显示分层的?
- 很讨厌的问题。
- 如何通过编程的方式调整datagrid中的某一行的高度
- 吐血奉献一个学习.net api的好网站。。http://www.allapi.net/apilist/apilist.php?dotnetonly=yes&showinfo=yes
- 我的未解决的问题(2),急呀!!
能具体点吗??
private void dataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
Point pt = new Point(e.X,e.Y);
DataGrid.HitTestInfo hit = dataGrid1.HitTest(pt);
if(hit.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.Select(hit.Row);
this.Text=hit.Row.ToString();//For debug
//dataGridQDSYB.CurrentCell = new DataGridCell(hti.Row, hti.Column); 得到选中的单元
}
}
看看在此事件中还做了什么
下面是我前面做的事!
DataGridTableStyle tsl = new DataGridTableStyle();
tsl.ReadOnly = false;
tsl.RowHeadersVisible = false;
DataGridTextBoxColumn TextCol;
//PropertyDescriptorCollection pcol = this.BindingContext[myDataSet,"STXMB"].GetItemProperties();
tsl.MappingName = "STXMB";
TextCol = new DataGridTextBoxColumn();
TextCol.MappingName = "tz";
TextCol.HeaderText = "调整";
//TextCol.CheckCellEnabled += new DataGridTextBoxColumn.EnableCellEventHandler(this.SetEnableValues);
tsl.GridColumnStyles.Add(TextCol);
加入其他列略!
dataGridSPM.TableStyles.Clear();
dataGridSPM.ReadOnly = false;
dataGridSPM.CaptionVisible = false;
dataGridSPM.TableStyles.Add(tsl);