473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Format datagrid's cell

zlf
Hi all,
I need format datagrid's cell. Such as set grid diagonal cells'
backgroud color to black, border style and so on. How can I achieve it.
Thanks

zlf
Nov 17 '05 #1
2 1699
u should prerender event of datagrid and change related cell background
color...

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

"zlf" <zl***@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need format datagrid's cell. Such as set grid diagonal cells'
backgroud color to black, border style and so on. How can I achieve it.
Thanks

zlf

Nov 17 '05 #2
zlf
Hi,
I really do not know how to do it...May u show me a simple sample? thank
you for your help

zlf
"Yunus Emre ALPÖZEN [MCSD.NET]" <ye***@msakademik.net> дÈëÏûÏ¢ÐÂÎÅ:eT**************@TK2MSFTNGP10.phx.gbl ...
u should prerender event of datagrid and change related cell background
color...

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

"zlf" <zl***@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need format datagrid's cell. Such as set grid diagonal cells'
backgroud color to black, border style and so on. How can I achieve it.
Thanks

zlf


Nov 17 '05 #3

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

Similar topics

2
by: Richard | last post by:
I know that you can format a grid and its columns using DataGridTableStyle and DataGridTextBoxColumn in VB.NET. But can you change the format of the individual rows, or even cells, to something...
1
by: Dominik Luyten | last post by:
Hi, I would like to format certain DataRows in a Windows.Forms.DataGrid. I know how to do that for the columns, but I cannot find a way to assign a specific font, color etc. to a specific kind...
1
by: J.B | last post by:
I have a datagrid that will display different datasets, (it runs different sprocs based on a value in the querystring) but it will always return 6 columns. The 5th and 6th columns are always Date...
3
by: Joey Powell | last post by:
Is it possible to specify a format string for one or more auto-generated datagrid columns? If so, could someone post an example? More specifically, I am interested in taking output like 27.0800000...
2
by: Daniel Walzenbach | last post by:
Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to...
6
by: Hutty | last post by:
I've looked around and have yet to find anything that would answer my question regarding formating a column in a datagrid. My grid looks like this as far as data" AMHQCON|51300.01|-3147 The...
3
by: JIM.H. | last post by:
Hello, In my DataGrid, I used DataFormatString="{0:d}" for a float type field, it gave me error. How can I force user type a float number in a cell? I also need to force user to type only one...
4
by: Suzanne | last post by:
Hi all, I'm having problems with datagrids and the currentcellchanged event. My problem is this: I have a datagrid on a form, if the user changes the text in a cell on the datagrid then tries to...
2
by: DraguVaso | last post by:
Hi, I'm looking for a nice way to format the cell of my datagrid according to some predefined 'rules'. I found a lot on the site of George shepherd, but it wasn't really what I was looking for:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.