Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
postback about checkbox in column
posted

Hi,

  I set a column's property: ColumnType is CheckBox.

  My question is how can I set CheckBox postback and process its event when user change its selected property.

  My code:

   ultraWebGrid.Columns[7].Type = ColumnType.CheckBox; 

 

Parents
No Data
Reply
  • 7694
    posted

     Hello  
    You can use server events  OnUpdateCell ot SelectedCellsChange
    C# code:  
      protected void UltraWebGrid1_SelectedCellsChange(object sender, Infragistics.WebUI.UltraWebGrid.SelectedCellsEventArgs e)
        {
            Label1.Text = "change1";
        }
        protected void UltraWebGrid1_UpdateCell(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            Label1.Text = "change2";
        }
    ASPX code:
    <igtbl:UltraWebGrid runat="server" ID="UltraWebGrid1" Height="200px" Width="325px"
                DataSourceID="SqlDataSource1"
                OnSelectedCellsChange="UltraWebGrid1_SelectedCellsChange"
                onupdatecell="UltraWebGrid1_UpdateCell">
                <Bands>
                    <igtbl:UltraGridBand>
                        <Columns>
                            <igtbl:UltraGridColumn BaseColumnName="0" Type="CheckBox" Key="0">
                                <Header Caption="0">
                                </Header>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn BaseColumnName="LastName" IsBound="True" Key="LastName">
                                <Header Caption="LastName">
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Footer>
                            </igtbl:UltraGridColumn>
    Hope this helps.

Children
No Data