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
65
How to add checkbox column to UltraWebGrid
posted

Hello,

I would like to add column to UltraWebGrid (the first column) which displays a checkbox for multi-selection of rows purpose. The user can select many rows by checking on the checkboxes and then click on a button which applies an action to the selected rows. This requirement seems quite easy but I still don't know how to. Using a table field to bind to the checkbox-column is not a good choice. I have tried a templatedColumn to display a checkbox but the value of the checkbox is always false.

Thanks in advance for your help.

Regards,

Hoc Nguyen 

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    You can add columns in UltraWebGrid with two ways:
    The first is design time:

    Add new attribure (new column):

    <igtbl:UltraGridColumn Type="CheckBox"></igtbl:UltraGridColumn>

     in tag Colums of Bands tag

    And second is run time from code-behind:

    protected void Page_Load(object sender, EventArgs e)

        {

            UltraWebGrid1.Columns.Insert(0, "fromCode");     

            UltraWebGrid1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.CheckBox;

            this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].Header.Caption = "code-behind:";

        }

    You can look this link:

     

    Grid -> WebCombo-Users Control
     

     

     

Children