zhanghui 发表于 2016-5-15 21:05:53

aspx devexpress gridview 怎么实现单选啊

<dx:ASPxGridView ID="grid" runat="server" SelectionChanged="OnGridViewSelectionChanged"    AutoGenerateColumns="False">
   
   
      <Columns >
            
            <dx:GridViewCommandColumn SelectAllCheckboxMode="None"ShowSelectButton="true"
                ShowSelectCheckbox="True" VisibleIndex="0">
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="#" FieldName="id"   Name="id" VisibleIndex="1">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="name"FieldName="name" Name="name" VisibleIndex="2">
            </dx:GridViewDataTextColumn>
      </Columns>
   
    </dx:ASPxGridView>
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVgAAACyCAYAAAAHxNcQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABukSURBVHhe7Z1trBXVvcaXekMP9KJYrhx6itqgSJoUxbcPGlE0UUTUqDFGbhVQvhQTI7dpfLmaeDWmgh8EW9BeEws2aZHGtB98A01Qi6kBvRxQU1MUVLygNBLPKRQPF+K+51lnnu1/L2dm7zn7rP1yzvNLVmZmrZn1vp757zWz17hSE1i7dm1p+vTppV/+8pel2bNnJ74D3HrrraV7773X77/22mv+vO3bt/tj+DMMYB/nZ4FrGY44cIw4Q8Kw8Dx7jPwi3yAt/xZch7IC5APHJIzHloNlrBY/6xHYMoTlsfUEP4TZOrVp4Jjph9j0LIwThGkjXVseW057bPOYBuJE+mH8iCMrPZ5ry1Mkf/TH1sZh9y1h/TAt9gHUc9ieNjxsb+TF5gf7OAeEeQ2vxX5aPm16wMYJssoGf6bH9uZ1YblDkBebhgXx2jTDYxK2m40T27y6sKSVA3GTMF4bj607ljmr7cjRrgnccMMN7qyzznK/+c1v3F133ZX4OvfBBx+4LVu2uEsvvdQfX3TRRe773/++6+7u9seDYd68eX47ZcoUv927d6/fWhCGdBg2Z84c98orr/j9119/3YchL8jfZ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kZDACiFEJCSwQggRCQmsEEJEQgIrhBCRkMAKIUQkJLBCCBEJCawQQkRCAiuEEJGQwAohRCQksEIIEQXn/h/GvGF21aS3xwAAAABJRU5ErkJggg==
页: [1]
查看完整版本: aspx devexpress gridview 怎么实现单选啊