473,513 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About datagird and dataset

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
Nov 21 '05 #1
4 1231
Hi,
did u tried
GridTextBoxColumn.Format Propety of dataGrid's Column Style.........to format ur Column data.

Regards,
Ritesh

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #2
Hi,

When you have problems doing things with the datagrid, than mostly this page
helps, when it is not on that, it will probably be a hard way to find a
solution.

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

I hope you find your solutions

Cor
Nov 21 '05 #3
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

"Ritesh Jain via DotNetMonster.com" wrote:
Hi,
did u tried
GridTextBoxColumn.Format Propety of dataGrid's Column Style.........to format ur Column data.

Regards,
Ritesh

--
Message posted via http://www.dotnetmonster.com

Nov 21 '05 #4
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.

"Ritesh Jain via DotNetMonster.com" wrote:
Hi,
did u tried
GridTextBoxColumn.Format Propety of dataGrid's Column Style.........to format ur Column data.

Regards,
Ritesh

--
Message posted via http://www.dotnetmonster.com

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2166
by: Petr Studenovsky | last post by:
Hello I made small GUI test program in Visual Basic NET for SQL communication. I need some help with these problems. problem 1) If I change some settings in datagrid from properties window...
0
1216
by: Freddy | last post by:
I have 2 tables in a dataset. One of them is child to the other. In my dataset, I specify both default views to allowdelete = false My datasource table of the datagird is the master table...
4
3463
by: Eric | last post by:
Hi, can anyone guide me throught this: In my application, I have a global DataSet. I then run FTP processes in up to 10 simultaneous threads and each thread calls progress events in the main...
0
983
by: timon | last post by:
I have create a Datagird in the window form. How can I set the column name in the datagird?
4
1167
by: Gidi | last post by:
hello i have a DataGrid Table and i want to select a row by Clicking the mouse after i tried few times, i understood the the only event the the datagird respones to is the current_cell_chang and...
1
994
by: Paul Tsai | last post by:
Dear All, I used c# to develop my company web application and used datagrid control to display my data. My question is how should I do if I want the datagird has its individual vertical and...
4
2256
by: Moojjoo | last post by:
Ok fellow C# developers: How do creat an instance of an object inside a dataset or datagrid. Example I need to have a placeholder inside a dataset. Any help would be great.
2
1455
by: Gaurav Gargate | last post by:
To Group, I am creating a datagrid in an ASP.NET project (C#) at the design time. I will be adding the columns to the datagird at run time. The number of columns, name of the columns, data in...
1
1056
by: Kiran | last post by:
Hi, Does any one know how to add a button to every row of a windows form datagird. Can anyone provide me some code on this. I have searched a lot but couldn't find any. I am posting this for...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.