RowHeaders in Datagrids
-
Hey: I want to write some text on the on each cell of rowheaders of Datagrid. I mean on the first column of the datagrids which has the mouse pointer on it. Is it possible to do it? If yes, can you plesae guide me. Regards, Hari
Are you familiar with creating your own custom controls? If not, you'll have a hard time with this. There's no step-by-step guide to tell you how to do this either. Basically, your going to have to handle the RowPostPaint[^] event and paint the text yourself. If you want some examples, you'll have to Google for them. Click[^]. I don't have any.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Hey: I want to write some text on the on each cell of rowheaders of Datagrid. I mean on the first column of the datagrids which has the mouse pointer on it. Is it possible to do it? If yes, can you plesae guide me. Regards, Hari
hi hari, use following statement
DataGridView1.Rows(rowno).HeaderCell.Value = "YourText"
also be sure RowHeadersVisible property of datagridview1 is set to TRUE Hope this helpsRupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)