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
340
Avoid selection of cell
posted
I have filled the grid using datasource property and the last column is 'Accept' . I have made the last columnstyle as button and gave the following properties, ugv.DisplayLayout.Bands(0).Columns("Accept").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button ugv.DisplayLayout.Bands(0).Columns("Accept").CellAppearance.BackColor = Color.Green ugv.DisplayLayout.Bands(0).Columns("Accept").CellButtonAppearance.BackColor = Color.Green ugv.DisplayLayout.Bands(0).Columns("Accept").CellButtonAppearance.Image = Image.FromFile("\\10.10.10.10\abc.png") The issues are, 1) My able to see the last column button style only when my mouse hovers on it. I need to view the button style when the grid gets loaded 2)When user clicks on button some action should be performed. With the above code when i click on the button full row is getting selected. When any other cell is clicked other than last 'Accept column' selection should not be done. Another problem which is not related to the above one is, In a grid, I have given the following property to make the grid non-editable and not to allow column resizing, With ugv.DisplayLayout.Override .AllowUpdate = Infragistics.Win.DefaultableBoolean.False .AllowColSizing = Infragistics.Win.UltraWinGrid.AllowColSizing.None End With Issue is if i click on a cell whole row is getting selected (backround color is changing to blue) and the clicked cell is changing into edit style but it is not allowing to edit. I want to select full row (ie, there should no edit style in the clicked cell) Thanks, Swetha.
Parents
No Data
Reply
  • 69832
    Offline posted

    1) Set the column's ButtonDisplayStyle property to 'Always'

    2) UlraGridColumn exposes a 'CellClickAction' property, which determines what happens when you click a cell, i.e., whether the cell goes into edit mode, a cell gets selected, or a row gets selected. The ClickCellButton event fires when you click the button, so you can perform an action in a handler for that event.

Children
No Data