OnAddRow not being called

1 reply. Last post: October 28, 2009 11:38 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Kasia Member

I have a WebGrid with OnAddRow="WebGrid1_AddRow" set. However, when I add a row, WebGrid1_AddRow() is not being called. What am I missing?

 

Here is my grid definition:

 <ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="250px" UseDefaultStyle="True" Width="500px" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnPrepareDataBinding="WebGrid1_PrepareDataBinding" OnBatchUpdate="WebGrid1_BatchUpdate" OnAddRow="WebGrid1_AddRow" > <LayoutSettings AllowAddNew="Yes" AllowColumnMove="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowFilter="Yes" AllowGrouping="Yes" AllowSorting="Yes" AllowBatchUpdate="True" EditOnClick="True" SelectFirstCellOnAdd="True" ApplyFiltersKey="Enter" NewRowLostFocusAction="AlwaysUpdate" > <BatchUpdateSettings AutomaticObjectUpdate="False" /> </LayoutSettings> <RootTable Caption="Test Contacts" DataKeyField="CONTACT_NO" DataMember="TESTCONTACTS" NewRowInfoText="Click here to add a new row"> <Columns> <ISWebGrid:WebGridColumn Caption="Contact Number" DataMember="CONTACT_NO" EditType="NoEdit" Name="CONTACT_NO" Width="100px"></ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Forename" DataMember="CON_NAME1" Name="CON_NAME1" Width="100px"></ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Surname" DataMember="CON_NAME2" Name="CON_NAME2" Width="100px"></ISWebGrid:WebGridColumn> </Columns> </RootTable>

</ISWebGrid:WebGrid>

</ISWebGrid:WebGrid>

All times are GMT -5. The time now is 9:26 AM.
Previous Next