Hi,
When I want to enable filtering on GridView(Design mode). My VS(2008 TS) have a hang(I must kill VS process, see the attachment). I try to use Property Builder for this and the result was the same.
Best regards
Marcin Sowa
Dim q = From o In svc.Orders Select o 'This query displays data
Dim q = From o In svc.Orders Select New With {o.OrderDate} 'This query does not display data
RadGridView1.DataSource = q.ToList
Hi
I have my own objects I want to bind to my grid and I want to make the column by myself because it’s not all the fields I want publish so I do like this
CompanyEOList Companylist = new CompanyEOList(WinXLFSecurity.XLFSecurity, WinXLFSecurity.CurrentDAL); |
Companylist.GetAll(); |
gdCompanyList.MasterGridViewTemplate.AllowAddNewRow = false; |
gdCompanyList.MasterGridViewTemplate.AutoGenerateColumns = true ; |
gdCompanyList.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill; |
gdCompanyList.MasterGridViewTemplate.Columns.Add(new GridViewDataColumn("Address", "Address")); |
gdCompanyList.DataSource = Companylist ; |
where gdCompanyList is my grid. When I do like this and want filtering I can’t edit the filtering textbox. If I set the property AutoGenerateColumns to true it works. I have also tried to set the property AllowFiltering on the new column but that work either.
Telerik.WinControls.UI.GridViewDataColumn newColumn = new GridViewDataColumn("Name", "Name")
newColumn.AllowFiltering = true;
gdCompanyList.MasterGridViewTemplate.Columns.Add(newColumn);
What have I missing ?
One other thing. When I bind my own objects to the grid and the user is edit the objects how do I force the grid to save the change ?
Best regards
Kim Johansen