我需要能够在我的asp:Datagrid 中选择一行,每当我在相应行的任何单元格上单击时。
<asp:DataGrid ID="dgDocument" SelectionMode="Single" runat="server" Localizable="True" Width="100%" UpdateAfterCallBack="False" AutoGenerateColumns="False" CssClass="Grid" OnSelectedIndexChanged="dgproposal_SelectedIndexChanged">
<AlternatingItemStyle CssClass="GridAlternativeItem"></AlternatingItemStyle>
<ItemStyle CssClass="GridItem"></ItemStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="DOCUMENT_NUMBER" HeaderText="Document Number">
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="Document Title">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DOCUMENT_NAME") %>' ID="Label3" NAME="Label3">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
...