By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 1,893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

Datagrid click colour change

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/WinFor...c44c.asp#q745q

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"JD" <J@di> wrote in message news:00****************************@phx.gbl...
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.