PC Review


Reply
Thread Tools Rate Thread

Questions about DataGrids..

 
 
Connor T
Guest
Posts: n/a
 
      5th Jul 2005
Hi,

I have a datagrid which is happily populated from my database, complete with
some additional calculated columns.

However, I have a couple of questions

1. How can I change the formatting of the text in a particular column? i.e.
i want to make it red if a condition is true

2. How do i change the default column headings and widths?

3. Can i hide a column? ( it's needed for the calculated column but i dont
really want to see it )

Many thanks!
Dan


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      5th Jul 2005
Connor,

For most of your questions is the answer the datagrid style

See this simple sample on our Site for a first idea
http://www.windowsformsdatagridhelp....6-3300b2215049

Most of the items you ask are related to the datagridtextboxcolumn
http://msdn.microsoft.com/library/de...mberstopic.asp

I hope this helps,

Cor


 
Reply With Quote
 
DraguVaso
Guest
Posts: n/a
 
      5th Jul 2005
This is the ideal site which gives answers to your questions:
http://www.syncfusion.com/FAQ/Window...efault.aspx#44

"Connor T" <(E-Mail Removed)> wrote in message
news:evsye.106$(E-Mail Removed)...
> Hi,
>
> I have a datagrid which is happily populated from my database, complete

with
> some additional calculated columns.
>
> However, I have a couple of questions
>
> 1. How can I change the formatting of the text in a particular column?

i.e.
> i want to make it red if a condition is true
>
> 2. How do i change the default column headings and widths?
>
> 3. Can i hide a column? ( it's needed for the calculated column but i dont
> really want to see it )
>
> Many thanks!
> Dan
>
>



 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in Datagrids mfleet1973@yahoo.ca Microsoft VB .NET 8 8th Oct 2006 12:29 PM
Datagrids??? Darryn Ross Microsoft C# .NET 1 9th Aug 2004 07:25 AM
VB.NET Datagrids simchajoy2000@yahoo.com Microsoft VB .NET 2 16th Jul 2004 09:24 AM
XML and Datagrids Kevin Microsoft ADO .NET 3 9th Oct 2003 10:23 PM
Re: dataGrids Majid Qazi Microsoft VB .NET 0 7th Sep 2003 08:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 PM.