Datagrid click colour change

  • Thread starter Thread starter JD
  • Start date Start date
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
 
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
 
Back
Top