About datagird and dataset

G

Guest

Hi:
I have two problems when using dataset and datagrid. One is how to
set different color for each cell in Datagrid.If this is not supported in
VB.Net 2003,
the next version VB.NET 2005 wil support this property??? Or there are
any suggestions???
Another is how to format or change the type the column of dataset. I retrive
one table from DB and one of column type is integer. When this column
shows in datagrid,the numbers in this column have to be appended with prefix
"0" if the number is less than 3 digits. ex. if the number is 2, 002 will
be displayed in
datagrid.Any suggestion???
thx for your help
 
R

Ritesh Jain via DotNetMonster.com

Hi,
did u tried
GridTextBoxColumn.Format Propety of dataGrid's Column Style.........to format ur Column data.

Regards,
Ritesh
 
G

Guest

hi Ritesh:
This property "Format" I have tried is a good way to solve my problem to
format
the column I need. But, the hard point is the digit in the column is unkonw
and it may be one, two or at most three digita(s).Do you have any
suggestion???
thx a lot
 
G

Guest

hi again:
I am embrassed to say I was to harry to reply your suggestion.
I have read the format propety in MSDN more carefually. There is a solution.
it is GridTextBoxColumn.Format= "D3".
Thx you a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top