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
105
Editing specific rows
posted

I'm using c#.net and i have a form wherein i am using an ultragrid which contains four columns. One which has a drop down list which when selected it populates another column that is read only. However the last two columns should be editable however the columns doesn't allow this behaviour. Can you suggest the issue ?

    void btnBillofToursgridaddrow_Click(object sender, EventArgs e)

        {

            BillofToursGrid.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom;

            BillofToursGrid.DisplayLayout.Bands[0].Columns["Name"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

            BillofToursGrid.DisplayLayout.Bands[0].Columns["TourLength"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

            BillofToursGrid.DisplayLayout.Bands[0].Columns["Capacity"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

 

            if (BillofToursGrid.DisplayLayout.Bands[0].Columns.Exists("TourId"))

            {

                BillofToursGrid.DisplayLayout.Bands[0].Columns["TourLength"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

                BillofToursGrid.DisplayLayout.Bands[0].Columns["Capacity"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

                BillofToursGrid.DisplayLayout.Bands[0].Columns["Name"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;

                BillofToursGrid.DisplayLayout.Bands[0].Columns["Name"].ValueList = tourName;

                BillofToursGrid.DisplayLayout.Rows.Band.Columns["TourLength"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.FormattedTextEditor;

                BillofToursGrid.DisplayLayout.Bands[0].Columns["TourLength"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;

                BillofToursGrid.DisplayLayout.Bands[0].Columns["Capacity"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;

            }            

        }

Parents
No Data
Reply Children