pda DataGrid 各位,.net wince(pda)有沒有好一點的第三方控件啊,只要是dataGrid就行了.我要讓dataGrid可以編輯的那種.自已做個可編輯的,但一直位置控置的不是很理想,所以想下個第三方的來用用.. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我都自己写的,位置控制很容易的,多找找示例把讓datagridview的cell顯示時間控件timepicker先拖放一個timepicker dtpLapseDate visible屬性設置為FALSEprivate void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e) { if (this.dataGridView1.Columns[e.ColumnIndex].HeaderText == "Column1" && e.RowIndex >= 0) { Rectangle cellrect = dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true); dtpLapseDate.Height = cellrect.Height; dtpLapseDate.Width = cellrect.Width; dtpLapseDate.Top = cellrect.Top + dataGridView1.Top; dtpLapseDate.Left = dataGridView1.Left + cellrect.Left; dtpLapseDate.Visible = true; dtpLapseDate.BringToFront(); dataGridView1.Rows[0].Cells[e.ColumnIndex].Value = dtpLapseDate.Text; label1.Text = dataGridView1.Rows[0].Cells[e.ColumnIndex].Value.ToString(); } else { dtpLapseDate.Visible = false; } } 你這個事件從哪裏來的,為什麽我的dataGrid上沒有這個事件啊??你是不是pda上的老大??? 基實我位置弄好了,但pda上頁面小,當我點擊比較邊邊的cell時,導至畫面不正常,還有就是在拖動滾動條的時機時,如何讓textBox不可見 PDA上面,使用这个,就是有点不爽。我的页面速度非常慢,感觉使用PDA还是有点怪怪的。 我们可以用TextBox来模拟单元格,让这个TextBox一开始隐藏起来,当点击DataGrid的单元格的时候,在当前单元格的位置显示TextBox.因此我们必须要先获得当前单元格的坐标,然后显示TextBox在该坐标,并且将当前单元格的内容赋给TextBox,当用户修改了TextBox的内容并且离开该单元格时,TextBox将再次被隐藏,同时,单元格的内容被赋为TextBox的最新内容。 使用Jmail组件为什么不能连接到gmail邮箱 C# 画渐变色 系统当前月份 如何在form显示的时候textbox里的字变为选中? 求c# web2.0 生成静态页面的方案~~ 关于com+中泛型的使用,急求 遇到一个问题,VS2003里无法调试ASP.NET 十万火急、在线求助: 曲线的连续、不分页打印问题 紧急求助!C#下安装WINDOWS 服务出现问题??? 关于网线的问题:我单位有一根网线有一要坏了,好像8根线中,有两根是备用的,是吗? 截取字符串到数组的问题 求教:C#关于网页抓取的问题
先拖放一個timepicker dtpLapseDate visible屬性設置為FALSE
private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
{
if (this.dataGridView1.Columns[e.ColumnIndex].HeaderText == "Column1" && e.RowIndex >= 0)
{
Rectangle cellrect = dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true);
dtpLapseDate.Height = cellrect.Height; dtpLapseDate.Width = cellrect.Width;
dtpLapseDate.Top = cellrect.Top + dataGridView1.Top;
dtpLapseDate.Left = dataGridView1.Left + cellrect.Left;
dtpLapseDate.Visible = true;
dtpLapseDate.BringToFront();
dataGridView1.Rows[0].Cells[e.ColumnIndex].Value = dtpLapseDate.Text;
label1.Text = dataGridView1.Rows[0].Cells[e.ColumnIndex].Value.ToString();
}
else
{
dtpLapseDate.Visible = false;
}
}
你這個事件從哪裏來的,為什麽我的dataGrid上沒有這個事件啊??你是不是pda上的老大???