如何对Telerik Rad Grid进行编程 [英] how to program telerik rad grid
本文介绍了如何对Telerik Rad Grid进行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
for (int i = 0; i < grdhd.Items.Count; i++)
{
if ((grdhd.Items[i].FindControl("chkhd") as CheckBox).Checked)
{
<big>string[] appdate = grdhd.Items[i].Cells[1].Text.Split(''/'');</big>
days = Convert.ToSingle(days - 0.5);
objhd.EmpCode = Session["EmpCode"].ToString();
objhd.EmpNo = Convert.ToInt32(Session["UserID"]);
objhd.Day = grdhd.Items[i].Cells[2].Text;
objhd.hddates = Convert.ToDateTime(appdate[1].ToString() + "/" + appdate[0].ToString() + "/" + appdate[2].ToString());
objhd.Slot = (grdhd.Items[i].FindControl("ddlslot") as DropDownList).SelectedItem.Text;
if (Session["UserName"] != null)
objhd.CreatedBy = Session["UserName"].ToString();
objhd.CreatedDate = System.DateTime.Now;
objhd.ModifiedBy = "";
objhd.ModifiedDate = System.DateTime.Now;
objhd.DeletedFlag = ''0'';
objhd.Insert(objhd);
}
}
请告诉我为什么粗体的行会出现错误.
Please tell me why the line in bold letter gives error.
推荐答案
我的想法是,您会在自己的论坛上问Telerik问题,因为这样您会更好他们自己的支持技术人员知道该怎么做的机会.
My thought would be that you would ask your Telerik questions in their forums since you would stand a much better chance of their own support technicians knowing what to do.
这篇关于如何对Telerik Rad Grid进行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文