Hi mike,
am using infragistics win grid for my window form, we found a stranger behavior of grid we develop and tested this form in our Development, UAT and mockup environment the form are good. when we install in our production environment i was surprise to see the hidden column in the winGrid. the setup of production are same as we have in our development,UAT environment. Please let me know what could be the cause of this prob ASAP. Appreciate ur help.
Regards
cyus
Hi Cyus,
What is UAT? I'm not familiar with the abbreviation. Is that some other third-party development platform? If so, it's probably not something we support.
In any case, if the grid is behaving differently on a client machine than on your development PC, then clearly there has to be a difference between the two machines. Perhaps they are using different versions of the grid, or the data structure is slightly different. Maybe your application is loading a layout file on your machine that does not exist on the client machine. It's really impossible for me to guess with any accuracy, since I know nothing about your application.
Is the visibility of the hidden column the only difference? Or are you losing the entire layout of the grid?
How are you hiding the column in the first place? I recommend using the InitializeLayout event of the grid, rather than hiding columns at design-time. That way, the code will be triggered and the column will be hidden after you set the grid's DataSource and you will not be relying on the data structure matching up.
UAT - User Acceptance Test Environment, The Environment is same no difference as we have in development. we use Data Set to bind the column in Grid.
The grid Layout have no effect it just show us the hidden column for example: let say i have 5 column in my Data set
1. memID - foreign key
2. memName
3.Address
4.ProductID - primary key
5.ProdDetails
i bind only 2.memName, 3.Address, 5.ProdDetails in the Grid.
1.Memberid and 4.productID used in Code-Behind in Order to select the row in the data.
when we build and run this application in development the grid are fine. but when we copy and run same .dll in other environment it show the 1.Memberid and 4.productID along with 3 other column.
i have just installed Window XP pro service 3, .netframework 3.5 sp1, and window installer 3.0 can u help me resolve this problem.
Well, as I said, if it's behaving differently on one machine than another, then clearly something must be different. Other than the obvious, like versions of the assemblies, and the things I already mentioned, like loading a layout file, I can't think of anything that would cause this.
My advice would be to use the InitializeLayout event and hide the columns in code. That way there's no way they can show up on the client machine.