hi
plz share ur thoughts

Recommended Answers

All 2 Replies

Please read the 2 stickies.

We dont do your work for you, please do some research and come back with a more precise question.

hi Lizr
thnks for great reply.i already implemented the coding but when i resize the colum im char in between the dividerwidth if anybody faced the same probelm with resolution plz tel me the way. i wil do.
c Lizr
this is my coding
celpainting event

if (e.RowIndex < 0)
            {
                Font drawFont = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                                    e.Graphics.DrawImage(Properties.Resources.img1, e.CellBounds);
               
                e.Graphics.DrawString(dataGridView1.Columns[e.ColumnIndex].HeaderText , drawFont, drawBrush, e.CellBounds);
                e.Handled = true;
                drawBrush.Dispose();
                //dataGridView1.Invalidate();

            }
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.