Hi,
i want to know how i can change grid theme
font color / size / style
border color
background
selected row
header color
Hello ueldeep,
Thank you for your post!
In the Android IGGridView, to change the font color, size, and style, I would recommend that you use the IGGridView.setOnCellCreatedEventListener method. This will fire when each cell in the grid gets created, and from each cell you can use igGridViewCell.getTextView() to retrieve the TextView in that particular cell. Then, you can use the methods on the TextView to modify the font in that cell, such as setTextColor/setTextSize. To actually set the font style, I would recommend you see this article: http://stackoverflow.com/questions/6271396/how-to-set-font-for-textview-in-android.
For the background of the grid, you can use IGGridView.setBackground. For the selected row, you can use IGGridView.selectedRows() to return a list of all of the selected rows in your grid. For the header color, you will need to provide a custom header for your grid, and change the background through that custom header. I would recommend that you see this forum thread where custom headers have already been discussed: http://ko.infragistics.com/community/forums/t/97860.aspx.
Regarding the border color, there currently is no functionality present for this. The IGGridView is currently in a CTP preview state though, and is not as feature rich as it will be when it is the full version. We will be adding more properties to it in the future, and if you would like to ensure that this feature gets added to the grid, I would recommend using our product ideas site: http://ideas.infragistics.com. This site allows you to create and vote on ideas that you would like to see implemented in the product, and it puts you in touch with our product management team who plans and prioritizes new features based on customer input.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
thanks for replay
i want ask about black vertical border i want remove it can i ???
Thank you for your response.
I am somewhat unsure of what you are referring to by a black vertical border. By default, I see that there is a black horizontal border between the rows in the IGGridView. Is this what you had meant? If so, you can remove this by setting grid.setRowSeparatorHeight(0). If this is not what you had meant, though, would it be possible for you to please provide some more detail on what black vertical border you are seeing in the IGGridView?
Thanks for replay
yes i mean horizontal border not vertical i am sorry this is my mistake and thank you it is worked fine
Thank you for your response. I am glad that I was able to assist you on this matter and that my proposed solution worked for you.