Hi all.
Iam usign infragistics wpf grid in my xaml..i want chekcbox in header and near each column i want check box..pls can any one tell how to keep check box in header and each column of the grid..
i bind my grid using entity list..
can any one tell ..
If you want to have checkboxed in all of your fields, you would have to retemplate the CellValuePresenter. You can find the default style in the DefaultStyles directory in the Infragistics folder. YOu can use that as a base to add checkboxed inside the ControlTemplate. Then, you can use DataTriggers/Triggers to see if the checkbox is/is not checked to determine what values should be saved in the database.
Thank u for your reply..My entity list contains add,edit,view,delete flelds .I want to keep check boxes for them but their datatype in enetity list is nchar(1).
i want to keep check box header check box for all the columns and checkbox near each column in grid ...
iam using repository entity list to bind..
can u tell me how to take the values if check box for allow edit ,allow add.allow delete is checked
i want to save yes in database and if unchecked no in database...
pls help me to keep check boxes in datagrid and also to take the values for saving teh records..
Hello,
You can do that. Please follow this blog post by Josh Smith:
http://blogs.infragistics.com/blogs/josh_smith/archive/2008/09/04/adding-checkboxes-to-the-record-selectors-in-xamdatagrid.aspx
Hope this helps.