Hi,
i have added a dynamic check box column by using the following code.
Me
.gvUserManagment.DisplayLayout.Bands(0).Columns.Add("Delete", "Select")
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
hi chris,
sorry for the late reply
thanks a lot for providing me the solution
I have attached the Form1.vb from the Knowledge Base sample to this reply. Remove the .txt extension from the file.
If you require further assistance, please let me know.
Thanks,
Chris.
Thanks for the response.
the samples are present on the knowledge base.
i can't view or access them as i don't have permissions to open a zip file.
could you please send the code
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.
Chris
probably you have to login to devcenter to see links? here is a straight link to source file http://devcenter.infragistics.com/download/samples/kb/ultrawingrid_checkbox_on_header_cs.zip