以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]DrawCell后自动加载无效???? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=41283) |
||||
-- 作者:aalons -- 发布时间:2013/10/15 17:53:00 -- [求助]DrawCell后自动加载无效???? 看了很多前辈的GRID Style,感觉标记很爽。不过发现不能自动加载(DataTable.Load())了。什么问题哦????订单表是CaseStudy里的Access表格
[此贴子已经被作者于2013-10-15 18:16:34编辑过]
|
||||
-- 作者:Bin -- 发布时间:2013/10/15 18:01:00 -- 没有数据源,没办法测试哦. |
||||
-- 作者:aalons -- 发布时间:2013/10/15 18:03:00 -- 订单表 |
||||
-- 作者:aalons -- 发布时间:2013/10/15 18:15:00 -- BIN再帮我试试看看 |
||||
-- 作者:aalons -- 发布时间:2013/10/15 19:21:00 -- ding |
||||
-- 作者:有点甜 -- 发布时间:2013/10/15 19:34:00 -- 测试了一下,你删除drawcell里的代码,直接在计时器里写代码,如下 Dim Table1 As Table = e.Form.Controls("Table1").Table Table1.DataTable.Load() For Each r As Row In Table1.Rows If r("折扣") > 0 Then Dim cs As C1.Win.C1FlexGrid.CellStyle = Table1.grid.Styles.Add("Test") cs.ForeColor = Color.Red Table1.Grid.SetCellStyle(r.Index +1 , 6,cs) End If Next 或者,用系统本身的功能来做。 |