Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

color in class

  Asked By: Trupti    Date: Jun 08    Category: Asp.net    Views: 1566
  

how can i write
DataGrid1.BorderColor = "#ffffff";

in some class?

i got convert error...

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Debbie Reyes     Answered On: Jun 08

DataGrid1.BorderColor = Color.SteelBlue

 
Answer #2    Answered By: Leroy Schmidt     Answered On: Jun 08


Using class  System.Drawing.Color.

DataGrid1.BorderColor= Color.White;

or

DataGrid1.BorderColor=Color.FromArgb(255,255,255);

You could utilize System.Drawing.ColorTranslator class also.

DataGrid1.BorderColor=ColorTranslator.FromHtml("#ffffff");

 
Answer #3    Answered By: Edwin Chavez     Answered On: Jun 08

it needs to be a colour class...

DataGrid.BorderColor = System.Drawing.Color.White or other colours
including a Systtem.Drawing.Color.FromArgb(int)

 
Answer #4    Answered By: Burk Martin     Answered On: Jun 08

i want exact color:
#8243B8

 
Answer #5    Answered By: Hubert Taylor     Answered On: Jun 08

www.learnasp.com/.../datagridtrick-codeonly.aspx
shows some samples of what you want.

ColorTranslator.FromHtml("#ffffff")

in that case based on the example.

At 04:08 PM 3/24/2003 +0200, you wrote:
>how can i write
>DataGrid1.BorderColor = "#ffffff";
>
>in some class?
>
>i got convert  error...

 
Didn't find what you were looking for? Find more on color in class Or get search suggestion and latest updates.




Tagged: