Hello,
I am using Infragistics.Win.UltraWinGrid.UltraGrid And with first column displaying as a checkbox. I want to add a checkbox in the header of this columt to allow user to select all of the grid rows.
Any idea please?
I am using NetAdvantage for .NET 2006 Vol. 2 CLR 2.0.
Thanks in advance!
HOWTO:How do I add a CheckBox to a WinGrid column header?
u can try this
#region HeaderCheckBoxEventArgs public class HeaderCheckBoxEventArgs : EventArgs { private Infragistics.Win.UltraWinGrid.ColumnHeader mvarColumnHeader; private CheckState mvarCheckState; private RowsCollection mvarRowsCollection; public HeaderCheckBoxEventArgs(Infragistics.Win.UltraWinGrid.ColumnHeader hdrColumnHeader, CheckState chkCheckState, RowsCollection Rows) { mvarColumnHeader = hdrColumnHeader; mvarCheckState = chkCheckState; mvarRowsCollection = Rows; } // Expose the rows collection for the specific row island that the header belongs to public RowsCollection Rows { get { return mvarRowsCollection; } } public Infragistics.Win.UltraWinGrid.ColumnHeader Header { get { return mvarColumnHeader; } } public CheckState CurrentCheckState { get { return mvarCheckState; } set { mvarCheckState = value; } } }