Hello,
I dont think your suppose to be able to change the RowHeader text in a
windows form, its quite simple in asp.net but in a windows form it can be a
pain in the behind.
However you could trying the following code.
private void MyDataGridView_ RowPostPaint(ob ject sender,
DataGridViewRow PostPaintEventA rgs e)
{
// The using statement automatically disposes the brush.
using (SolidBrush b = new
SolidBrush(MyDa taGridView.RowH eadersDefaultCe llStyle.ForeCol or))
{
e.Graphics.Draw String(e.RowInd ex.ToString(),
e.InheritedRowS tyle.Font, b, e.RowBounds.Loc ation.X + 20,
e.RowBounds.Loc ation.Y + 4);
}
}
Hope this helps in some way
Regards
Scott Blood
C# Developer
<sa************ ***@yahoo.com> wrote in message
news:11******** **************@ e56g2000cwe.goo glegroups.com.. .
Hi Team,
This is saravanan i am new to C#.. I am using VS2005 for my windows
based application.. I am using DataGridView to show the values.. What i
want is i want to display the text in the rowheaders of the
DataGridview and I want to enable the tooltip in the cells.
Thanks in advance
Any help or suggesstion is appreciated