any help about this problem?thank you all
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 22, 2012, 5:48 AM EST
http://msmvps.com/blogs/deborahk/archive/2009/08/13/painting-on-the-datagridview.aspx
http://dotnetslackers.com/articles/controls/DataGridView_versus_DataGrid.aspx
http://blog.csharphelper.com/2010/05/29/set-a-datagridview-controls-column-styles-in-c.aspx
jason tang8 reputationPosted Dec 26, 2012, 12:09 AM EST
Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 26, 2012, 5:15 AM EST
i will suggest go through this link and try to understand the example logic and apply some logic.
http://www.codeproject.com/Articles/2214/Changing-the-background-color-of-cells-in-a-DataGr
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewadvancedborderstyle.aspx
Shambhu55 reputationPosted Dec 26, 2012, 6:29 AM EST
Cell or label can be identified in RowDataBound event of gridview and then apply style on the control.
Sample program is attached with. Change the connection string, database and query to fit to ur requirement.
jason tang8 reputationPosted Dec 26, 2012, 3:11 PM EST
i will base the problem on that logic,thanks
Shambhu's answer is web form,my problem was a winform application,thank you all the same