怎么用DataGridTableStyle 格式化添加了关系的DataSet中的子表的表头 -_-!

Kain 2003-10-29 09:58:55
怎么用 DataGridTableStyle 格式化添加了关系的DataSet中的子表的表头.
Dim ts As New DataGridTableStyle
Dim at As DataGridTextBoxColumn


ts.MappingName = maptingName '这里不知道怎么设置.设置成子表的tablename,导航到子表时,子表的所有栏位都不见了.
...全文
43 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
airon2002 2003-12-09
  • 打赏
  • 举报
回复
If fselected Then '选中
e.Graphics.DrawRectangle(New Pen(SystemColors.ControlDarkDark), mRect)
'g1.DrawLine(New Pen(Color.White), e.Bounds.Left + 2, e.Bounds.Top + CType(e.Bounds.Height - 2, Integer), e.Bounds.Left + e.Bounds.Width - 2, e.Bounds.Top + CType(e.Bounds.Height - 2, Integer))
'g1.DrawLine(New Pen(Color.White), e.Bounds.Left + 2, e.Bounds.Top + CType(e.Bounds.Height - 1, Integer), e.Bounds.Left + e.Bounds.Width - 2, e.Bounds.Top + CType(e.Bounds.Height - 1, Integer))
Else
If CType(e.State And DrawItemState.HotLight, Boolean) Then
'mouse 移动到的图型
e.Graphics.DrawRectangle(New Pen(Color.FromArgb(10, 36, 106)), mRect)
e.Graphics.FillRectangle(New SolidBrush(Color.FromArgb(182, 189, 210)), mRectFill)
Else
'正常状态的图形
e.Graphics.DrawRectangle(New Pen(Color.FromArgb(212, 208, 200)), mRect)
e.Graphics.FillRectangle(New SolidBrush(Color.FromArgb(212, 208, 200)), mRectFill)
End If
End If
Kain 2003-11-03
  • 打赏
  • 举报
回复
是没人知道!还是嫌题目不够分量
Kain 2003-11-03
  • 打赏
  • 举报
回复
up
youyous 2003-10-31
  • 打赏
  • 举报
回复
up
Kain 2003-10-31
  • 打赏
  • 举报
回复
我是在Windows窗体
houlinghouling 2003-10-31
  • 打赏
  • 举报
回复
学习!
不知道这个对你有没有什么帮助!看一看去!
http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/default.aspx
Kain 2003-10-31
  • 打赏
  • 举报
回复
up

111,094

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧