我使用了DevExpress GridView,并将文本框放在QUANTITY列中。用户应该在这些文本框中输入数量。当他们单击“确定”按钮时,我需要将他们输入的内容输入到文本框中。 TextBox在最后一栏。
我不确定如何获取网格值。任何人都可以帮我这个吗?
<dx:ASPxGridView ID="gv2" runat="server" Width="100%"
AutoGenerateColumns="False">
<Columns>
<dx:GridViewDataTextColumn Caption="STOK KODU" FieldName="STOK_KODU"
ShowInCustomizationForm="True" VisibleIndex="0">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="VARYANT KODU" FieldName="VARYANT_KODU"
ShowInCustomizationForm="True" VisibleIndex="1">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="BEDEN" FieldName="BEDEN"
ShowInCustomizationForm="True" VisibleIndex="2">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="KAVALA" FieldName="KAVALA"
ShowInCustomizationForm="True" VisibleIndex="3">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="RENK" FieldName="RENK"
ShowInCustomizationForm="True" VisibleIndex="4">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="ADET" FieldName="ADET"
ShowInCustomizationForm="True" VisibleIndex="5">
<PropertiesTextEdit DisplayFormatString="c2">
</PropertiesTextEdit>
<DataItemTemplate>
<dx:ASPxTextBox ID="totalText" runat="server" Text='0' />
</DataItemTemplate>
</dx:GridViewDataTextColumn>
</Columns>
</dx:ASPxGridView>
答案 0 :(得分:1)