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
365
Adding a Check Box to the column Header
posted

Hi,

i have added a dynamic check box column by using the following code.

 

 

Me

 

.gvUserManagment.DisplayLayout.Bands(0).Columns.Add("Delete", "Select")

 

 

Me.gvUserManagment.DisplayLayout.Bands(0).Columns("Delete").DataType = GetType(Boolean)

 

 

Me.gvUserManagment.DisplayLayout.Bands(0).Columns("Delete").Style = UltraWinGrid.ColumnStyle.CheckBox

now i want to add a checkbox to the column header.

could you please help me????

actually there is some code on the below link ,but i can't download or view it

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=4883

how to capture the column header checkbox event after adding the check box to the column header i.e

if we select the column header checkbox then all rows check boxes should be selected and vice-versa

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello,

    In NetAdvantage 2009 Volume 1, we implement the CheckBox in Column Header feature which accomplishes the behavior as you have described it.

    Displaying a CheckBox in the Column Header

    If you are unable to upgrade to this version, you will have to add the CheckBoxUIElement to the column header using a creation filter (as described in the Knowledge Base article you already found). You will also need to handle the ElementClick event on the CheckBoxUIElement, as well as an event on the grid itself such as CellChanged, to keep the cell synchronized.

    I verified the samples could still be accessed on Knowledge Base article #4883.

    If you require further assistance, feel free to let me know.

    Thanks,

    Chris

Children