webgrid add new row when leace the cell

1 reply. Last post: June 1, 2011 5:00 AM by Martin Lie
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
zhang liMember

in my project ,i set  coloum DataType="System.Int32", I want to ,when i leave this cell ,it will judge the cell data type .when the cell type is not correct .it will alert message .you can look the message.png. 

how can i do .thanks .here is my code



<ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="250px" OnInitializeDataSource="WebGrid1_InitializeDataSource"
OnPrepareDataBinding="WebGrid1_PrepareDataBinding" Width="400px" UseDefaultStyle="True"
OnPrepareExportExecute="WebGrid1_PrepareExportExecute" OnLoad="WebGrid1_Load">
<RootTable>
<Columns>
<ISWebGrid:WebGridColumn Caption="id" DataMember="id" Name="id" Width="100px" DataType="System.Int32">
</ISWebGrid:WebGridColumn>
</Columns>
</RootTable>
<LayoutSettings AllowColumnFreezing="Yes" AllowColumnMove="Yes" AllowSorting="Yes" AllowAddNew="Yes"
ShowColumnAction="True" AllowSelectColumns="Yes" AlwaysShowHelpButton="False"
ShowRefreshButton="False" StatusBarVisible="False">
<TextSettings Language="UseCustom" UseLanguage="zh-CN">
</TextSettings>
</LayoutSettings>
</ISWebGrid:WebGrid>

1 attachment
All times are GMT -5. The time now is 10:45 PM.
Previous Next