Hi,
I am using xamDataGrid and binding it to an observable collection. I want to have the functionality where I can add columns at runtime, after initial binding is done. I have also implemented it through adding a property descriptor to the property descriptor collection.
But the problem I am facing is that the grid does not automatically get refreshed, when a column is added at runtime. I have to navigate away from the grid and then navigate back to the grid, to be able to see the newly added columns.
Does xamDataGrid support auto refresh? If yes, then can someone tell me what do I need to do get auto refresh working?
Thanks!
Hello,
This is true, once the XamDataGrid is bound to data, the editor of every cell is configured according to the type of data. If it is DateTime - XamDateTimeEditor, decimal - XamCurrencyEditor, Int,Double - XamNumericEditor and you cannot change it. My suggestion for this would be -- to use a XamTextEditor in the grid, and a dialog window that would show up and will have the appropriate editors (according to the option in the ComboBox) and then pass the data to the grid.
Let me know if that would work in your scenario
Alex.
Hi Curtis,
I want to assign a style to a record of xamdatagrid at some event. For e.g. If I select say Date as datatype from combobox then corresponding record should allow a user to select default date, and if user selects Numeric the user should be allowed to enter only numeric data.
Problem: datasource is already assigned to the grid and then on SelectionChanged event style should be assigned for a record. I noticed is once datasource is assigned to a xamdatagrid then assigning a style has no effect.
Is there any way that we can bind a common style to a grid which contains some object and we will bind a required style to that object.
Thanks in Advanced
Hello Sumeet,
I was wondering if you found the solution to this problem. I believe it may bave been fixed with one of the latest builds of NetAdvantage. Please let me know if you still need help.
Thanks,
Which binding properties are you talking about for fixing this? Can you elaborate more?
I tried all the 5 options for updateMode, none working.
There is one more issue I am facing. I am invoking a function async using ThreadPool.QueueUserWorkItem and this function is doing some work required for the data binding. But I have to click twice on a button to get its desired effect. Nothing happens after the first click. (btw this function is called somewhere in that button click). And if I remove async nature, the first click displays all the desired result on the grid. Is this issue also related to same thing, I mean grid not getting auto-refreshed?
Please advise,
Sumeet
I would first look at your binding to see if any Binding properties can fix this, second I would look at the UpdateMode property in the xamDataGrid. Lastly, I would report this issue as a defect. If you do report this, ask for a work-around.
You can report defects at the following webpage:http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
Thank you,