473,432 Members | 1,394 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,432 software developers and data experts.

Setting Cell/Row/Column Properties in DataGrid

After a good bit of urging from folks in this newsgroup I have begun to
become familiar with the VB .Net DataGrid control as a replacement for one
my favorite VB6 controls ... the FlexGrid. In any event, I have a DataGrid,
added a GridTableStyle, bound a DataTable to it and everything displays
pretty well. Now, sometimes when the user clicks on a cell I would like to
be able to determine the row/column number and set the foreground and
background color of that cell to particular values ... other times I want to
set the row that was clicked to a new color ... and sometimes I want to
change the column color. Can someone point to an information source that
tells me how to do this? So far I have not seen any way to set the color
(or font) properties of a particular cell or column or row.

Thanks.

Nov 23 '05 #1
2 6692
fripper,

Whenever I have a question about the datagrid I always start here:

http://www.syncfusion.com/FAQ/Window...efault.aspx#44

Kerry Moorman
"fripper" wrote:
After a good bit of urging from folks in this newsgroup I have begun to
become familiar with the VB .Net DataGrid control as a replacement for one
my favorite VB6 controls ... the FlexGrid. In any event, I have a DataGrid,
added a GridTableStyle, bound a DataTable to it and everything displays
pretty well. Now, sometimes when the user clicks on a cell I would like to
be able to determine the row/column number and set the foreground and
background color of that cell to particular values ... other times I want to
set the row that was clicked to a new color ... and sometimes I want to
change the column color. Can someone point to an information source that
tells me how to do this? So far I have not seen any way to set the color
(or font) properties of a particular cell or column or row.

Thanks.

Nov 23 '05 #2
Thanks ... that's a good resource ... now in my Favorites!

"Kerry Moorman" <Ke**********@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
fripper,

Whenever I have a question about the datagrid I always start here:

http://www.syncfusion.com/FAQ/Window...efault.aspx#44

Kerry Moorman
"fripper" wrote:
After a good bit of urging from folks in this newsgroup I have begun to
become familiar with the VB .Net DataGrid control as a replacement for
one
my favorite VB6 controls ... the FlexGrid. In any event, I have a
DataGrid,
added a GridTableStyle, bound a DataTable to it and everything displays
pretty well. Now, sometimes when the user clicks on a cell I would like
to
be able to determine the row/column number and set the foreground and
background color of that cell to particular values ... other times I want
to
set the row that was clicked to a new color ... and sometimes I want to
change the column color. Can someone point to an information source that
tells me how to do this? So far I have not seen any way to set the color
(or font) properties of a particular cell or column or row.

Thanks.

Nov 23 '05 #3

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

Similar topics

4
by: Terry | last post by:
Hey, Having somewhat of an issue, I have a datagrid which is giving me issues. The Datagrid is setup for the user to double click the row, the row is selected and data within that row populates a...
2
by: michael Schindler | last post by:
How i can set in a datagrid in c# widows forms in a specifig cell example Row 3 column 4 a specifig data for example "Michael"? I want after the user give in a cell in my datagrid additionally...
9
by: Paul | last post by:
Hi I have a data grid with a hyperlink column. the colum has numbers like 00001,000002, ect. Just wondering how to get the text value of the cell as tempstring =...
1
by: js | last post by:
Question 1: I have the columns autogenerate = false and add each column programatically. One of the column is bound to a integer field (Due) of a recordset. I am trying to change the content of...
4
by: Lee Holsenbeck | last post by:
hi, how would i get a datagrid's cell's text ? i know the events that will tell me which cell i clicked on for the row and column #'s, but cant find the properties to get the text (i.e. "hello...
4
by: Roger | last post by:
I have a datagrid and would like to know what even fires when a cell is changed? I want to know when the user changes a cell and moves to the next. I have some code that needs to be done to...
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
2
by: Sharon | last post by:
I want put into my DataGrid different control types in the same column. For example: Column 1, row 0 ==> TextBox Column 1, row 2 ==> CheckBox Column 1, row 2 ==> ComboBox etc... As I see, I...
0
by: =?Utf-8?B?U2Vhblc=?= | last post by:
It appears that in the .NET Framework 2.0, if you create a datagrid, set AllowPaging="true", and set AutoGenerateColumns="true" the behaviour of the paging cell is incorrect, the ColumnSpan...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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
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,...
0
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
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.