我改了DBRrid的的颜色,是隔行变的,分别是淡绿色和米黄色
我发现改了之后,在选中行的时候,背景色变成了白色不再是以前的蓝色了,都看不清楚了,
这样很不方便
请问怎么把它再改回来啊,或者变成其他颜色???

解决方案 »

  1.   

    if (gdSelected in state) then
      DBGrid1.Canvas.Brush.Color := clred;
    DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
      

  2.   

    顺便问一下,怎么打开E-mail的超链接啊
    这样做怎么不行呢??
    if trim(Mailedit.Text)<>'' then
      Shellexecute(handle,nil,pchar(Mailedit.Text),nil,nil,sw_shownormal);
      

  3.   

    if trim(Mailedit.Text)<>'' then
      Shellexecute(handle,'Open',pchar(Mailedit.Text),nil,nil,sw_shownormal);//改成Open
      

  4.   

    DrawColumnCell
    {
    if (gdSelected in state or gdFocused in state ) then
      DBGrid1.Canvas.Brush.Color := clred;
    DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
    }
      

  5.   

    TO insert2003(高级打字员)你说的不行啊,还是打不开的
      

  6.   

    应该这样
    if trim(Mailedit.Text)<>'' then
    Shellexecute(handle,nil,pchar('mailto:'+Mailedit.Text),nil,nil,sw_shownormal);