can anybody tel me ? to do in datagridview at runtime.actualy that s textboxcolumn. whenerver click the cell it should show the background imag. is it possible in C# windows.if u any idea plz help me out.thnks
Renukavani
0
Junior Poster
Recommended Answers
Jump to PostdataGridView1.Rows[Row].Cells[ColName].Style.SelectionBackColor =your color(Color.Red)
for image find this link:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rowprepaint(VS.80).aspx
Jump to Postyes you can, and with a small amount of imagination it was very obvious and very simple. In fact MSDN shows almost how to do it, it shows how you draw something for a given cell and it took me like 2 minutes of my life which I bothered to …
Jump to PostUm
take a look at the events one kinda stands out.
All 10 Replies
viswa_007
0
Newbie Poster
Jugortha
-1
Junior Poster
Renukavani
0
Junior Poster
LizR
171
Posting Virtuoso
Renukavani
0
Junior Poster
LizR
171
Posting Virtuoso
Renukavani
0
Junior Poster
LizR
171
Posting Virtuoso
Renukavani
0
Junior Poster
LizR
171
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.