没什么思路,属性和事件里看不出该怎么绑定

解决方案 »

  1.   

    前台代码:<dx:ASPxGaugeControl ID="ASPxGaugeControl1" runat="server" 
                BackColor="White" Height="260px" Value="20" Width="260px" 
                EnableClientSideAPI="True" ondatabinding="Page_Load" ondisposed="Page_Load" 
                oninit="Page_Load" onload="Page_Load" onprerender="Page_Load" 
                onunload="Page_Load">
                <Gauges>
                    <dx:LinearGauge Bounds="0, 0, 260, 260" Name="lGauge1">
                        <backgroundlayers>
                            <dx:LinearScaleBackgroundLayerComponent Name="bg1" ScaleEndPos="0.497, 0.135" 
                                ScaleID="scale1" ScaleStartPos="0.497, 0.865" ShapeType="Linear_Style7" 
                                ZOrder="1000" />
                        </backgroundlayers>
                        <levels>
                            <dx:LinearScaleLevelComponent Name="level1" ScaleID="scale1" ShapeType="Style7" 
                                ZOrder="-50" />
                        </levels>
                        <scales>
                            <dx:LinearScaleComponent AppearanceTickText-Font="Tahoma, 10pt" 
                                EndPoint="62.5, 33" MajorTickCount="6" MajorTick-FormatString="{0:F0}" 
                                MajorTick-ShapeOffset="6" MajorTick-ShapeType="Linear_Style7_3" 
                                MajorTick-TextOffset="35" MaxValue="150" MinorTickCount="4" 
                                MinorTick-ShapeOffset="6" MinorTick-ShapeType="Linear_Style7_2" 
                                Name="scale1" StartPoint="62.5, 217" Value="20" MinValue="-50">
                            </dx:LinearScaleComponent>
                        </scales>
                    </dx:LinearGauge>
                </Gauges>
            </dx:ASPxGaugeControl>
      

  2.   

    数据我都查询出来了,就不知道显示在控件的什么上,我把控件的属性写出来吧。-Accessibility
    DescriptionUrl-Client-Side
    ClientInstanceName
    ClientSideEvents
    EnableClientSideAPI-LoadingPanelLoadingPanelImage
    LoadingPanelImagePosition
    LoadingPanelStyle
    LoadingPanelText
    ShowLoadingPanelImage-布局
    Height.
    Width.-可访问性
    AccessKey-数据
    (Expressions)
    Value-外观AlternateText
    BackColor-行为Enabled
    EnabledViewState
    SaveStateOnCallbacks
    ShowLoadingPanel
    ToolTip
    Visible-杂项(ID)
    AutoLayout
    BinaryStorageMode
    Gauges
    ImageType
      

  3.   

    就是把查询的值赋给value这个属性。
      

  4.   

    您做的仪表盘可以给我发一下源码么?我刚接触,我们呢老板就让你给我做呢,谢谢你呢!qq邮箱:[email protected]   谢谢呢!