How to display row header caption in the DataGrid control?

G

Guest

Does anyone know if there is some way to set the Row Header Caption in a
DataGrid or DataRow? I have no problem setting the column name through the
DataColumn class using Caption {get; set;}. However, I can't seem to find
the equivalent for the DataRow class.

Thanks
 
G

Guest

Thank you for your response.

However the link you mentioned discuss extended version of DataGrid control
sold by that company. Standard MS DataGrid class doesn't have Binder property.

Could you comment.

Thanks
 
J

John J. Hughes II

Oh, I used that website a lot a while back but they change it. I have my
own custom data grid so in concept it's extended but I never did anything to
the row header. Most of my changes have been to the data gird itself in
regards to displaying data.

I think you would have to handle panting the grid yourself to add text which
would be rather a pain.

My suggestion would be to hide the row header and create a custom grid
column that looked like the row header. You could then select the column on
click if you want. Sort of depends how many of the standard features of the
row header you need.

You might also be able to replace the icon on the row header but you are
very limited on size that way.

Regards,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top