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
Unbound CheckBox Column With DefaultValue as Selected
posted

Hi All,

I have a Grid where I have attached a datatable which have some column to display.

It is my master ultra grid which is also used for saving and updating data.

I have two problem, If possible provide me a way to achieve...

After attaching datatable to grid, I added a unboud checkbox column to Grid (Code is below mentioned)

            With grdDealFlow.DisplayLayout
                .Bands(0).Columns.Insert(.Bands(0).Columns.Count, "Saved")
                .Bands(0).Columns("Saved").DataType = GetType(Boolean)
                .Bands(0).Columns("Saved").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox
                .Bands(0).Columns("Saved").CellActivation = Activation.NoEdit
                .Bands(0).Columns("Saved").CellAppearance.FontData.Bold() = DefaultableBoolean.True
                .Bands(0).Columns("Saved").DefaultCellValue = False
            End With

Now I want to be check all row with value true. How can it possible.

 

I need my grid to be non-Insert able until he is not clicked on Add button.

After clicking on add button a new blank row will be added, So I can Input my detail inside that row

For Add New I will going use

Me.grdDealFlow.DisplayLayout.Bands(0).AddNew()

 

How can It possible that at initialize stage grid in not insert able but editable.

Thankx In Advance

Vijay

Parents
No Data
Reply
  • 69832
    Offline posted

    I'm afraid I didn't fully understand your question, but to set the value of a cell in an unbound column, you get a reference to the cell from the row's Cells collection, using the indexer that takes a reference to the unbound column or its key, and set it Value property. To make the value of that cell true for all rows, iterate the control's Rows collection, get a reference to the cell in the unbound column, and assign the value true to the cell's Value property.

Children