powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / GridView GridViewUpdateEventArgs
1 сообщений из 1, страница 1 из 1
GridView GridViewUpdateEventArgs
    #37878019
Che0
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добрый день.
Надо внести данные в гридВиев

Код: c#
1.
2.
3.
 protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) 
{
}



Код: php
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
<asp:GridView ID="GridView1" runat="server" HeaderStyle-BorderWidth="1px" BorderWidth="1px"
    EnableModelValidation="True" AutoGenerateColumns="False" OnRowEditing="GridView1_RowEditing"
    OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating"
    OnRowUpdated="GridView1_RowUpdated" CellPadding="3" BackColor="White" BorderColor="#CCCCCC"
    BorderStyle="Solid" Width="35%" EnableViewState="true" OnRowDataBound="GridView1_RowDataBound">
    <Columns>
        <asp:CommandField ShowEditButton="True" />
        <asp:BoundField DataField="KpiName_Acc" SortExpression="KpiName_Acc" HeaderText="Перечень KPI"
            ItemStyle-Width="60px" ItemStyle-Wrap="True" ItemStyle-HorizontalAlign="Left"
            InsertVisible="False" ReadOnly="True" ControlStyle-Width="10px" HeaderStyle-Wrap="true">
            <ControlStyle Width="10px"></ControlStyle>
            <HeaderStyle Wrap="True"></HeaderStyle>
            <ItemStyle HorizontalAlign="Left" Wrap="True" Width="60px"></ItemStyle>
        </asp:BoundField>
        <asp:TemplateField HeaderText="Вес"  SortExpression="WeightValue">
            <EditItemTemplate>
                <asp:TextBox ID="Textbox1" runat="server" Text='<%# Bind("WeightValue") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:0%}",Eval("WeightValue")) %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
            <asp:BoundField DataField="Target" SortExpression="Target" HeaderText="Цель" HeaderStyle-Width="60px" HeaderStyle-Wrap="true"
            DataFormatString="{0:F}" ItemStyle-HorizontalAlign="Center">
            <HeaderStyle Wrap="True" Width="60px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundField>
       </Columns>
    
</asp:GridView>


но почему то e.NewValues возвращает пустую коллецкию, как и e.OldValues. Подскажите в чем дело
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / GridView GridViewUpdateEventArgs
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]