Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2006, 04:55 PM   PM User | #1
CodeThis
New Coder

 
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
CodeThis is an unknown quantity at this point
DataGrid & Color

I want to have a datagrid, and select the color of the fields background color by what is in the database column. For example, in the database table I have a column that is called Color, and I want the color of the row to show up as the background. Is this possible?

CodeThis is offline   Reply With Quote
Old 03-08-2006, 10:38 AM   PM User | #2
handshakeit
New Coder

 
Join Date: Oct 2005
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
handshakeit is an unknown quantity at this point
You don't specify type of application u r creating is it web application or window application

for window application there is tablestyle property in datagrid u can use it like this
DataGridTableStyle ts=new DataGridTAbleStyle();
ts.MapplinName="table name by which grid is filled";
//set the properties of ts
//after that add it to grid like this
dataGrid1.TableStyle.Clear();
dataGrid1.TableStyle.Add(ts);

hope this will help
handshakeit is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:16 PM.


Advertisement
Log in to turn off these ads.