any help about this problem?thank you all
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
jason tangPosted Dec 26, 2012, 8:11 PM
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
ShambhuPosted Dec 26, 2012, 11:29 AM
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.
Vishnujeet KumarPosted Dec 26, 2012, 10:15 AM
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
jason tangPosted Dec 26, 2012, 5:09 AM
Vishnujeet KumarPosted Dec 22, 2012, 10:48 AM
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