Datagrid click colour change

J

JD

How do i get rid of the 1st column that appears in a
datagrid? I do not want this?

Also how do i change the colour of the background of a
cell when the user selects it. i.e for the first coloumn
i have made this non-editable and therefore i do not want
the graey colour that appears when the user clicks on a
cell in the first row.
As only my second row is editable, i only want a click
colour for this coloumn

thx
 
J

Jan Tielens

Regarding the colored textbox: this can be accomplished by creating a custom
TextBoxColumn, inheriting from the default one. The trick is to add an event
to this column, that will be raised for each displayed textbox. In this
event you can set the desired colors etc. For a complete example check out
the Syncfusion faq:
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q745q

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 

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