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

Displaying an icon in a DataGrid's RowHeader?

Hi folks,

I'd like to notify the user that rows within a datagrid require
user-interaction/processing.
The RowHeader is visible and wide enough so that the exclamation-mark icon
as i.e. the ErrorProvider-control displays it would fit in neatly.
Is there a way of using the ErrorProvider-control directly or else is there
a way of displaying icon in a DataGrid's RowHeaders?

Cheers & TIA,
Olaf
Nov 21 '05 #1
2 5038
Hi,

Here is a link on how to draw in the row header
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q896q

You can also use the datarow.setcolumnerror to display an error
message in the cell

http://msdn.microsoft.com/library/de...errortopic.asp

Ken
--------------------
"Olaf Rabbachin" <Ol*********@IntuiDev.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi folks,

I'd like to notify the user that rows within a datagrid require
user-interaction/processing.
The RowHeader is visible and wide enough so that the exclamation-mark icon
as i.e. the ErrorProvider-control displays it would fit in neatly.
Is there a way of using the ErrorProvider-control directly or else is there
a way of displaying icon in a DataGrid's RowHeaders?

Cheers & TIA,
Olaf
Nov 21 '05 #2
Hi,

Ken Tucker [MVP] wrote:
Here is a link on how to draw in the row header
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q896q
thanks! When I searched through that FAQ I didn't use "RowHeader" as
search-string hence I didn't find it. Just came back here to post the
solution which you already did. :-)
You can also use the datarow.setcolumnerror to display an error
message in the cell

http://msdn.microsoft.com/library/de...errortopic.asp


Thanks, that's nice to know as well!

Cheers,
Olaf
Nov 21 '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...
1
by: Tim Newton | last post by:
Hi Anyone tell me how to number the rowheaders of a datagrid, e.g. 1,2,3,4,5 etc, just like in excel. I could put the row numbers in a new column but there has to be a simple way of adding it to...
5
by: Genojoe | last post by:
I am using code from Help with two exceptions. (1) I increased the number of sample rows from 3 to 20, and (2) I anchored the datagrid to bottom of form so that I can change the size of the grid by...
6
by: Strahimir Antoljak | last post by:
Is it possible (and how?) to get the data grid column name based on the DataGrid.CurrentCell? The DataGrid has assigned a TableStyle comprising selected columns (DataGridTextBoxColumn) from the...
1
by: Doug Bell | last post by:
Hi, Can you lock the colum in a datagrid so that it can not be resized by th user? Thanks Doug
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
0
by: John Smith | last post by:
Is it possible to customize the DataGrid so that I can gain access to the RowHeader colomn? I want to move the Arrow and Pencil graphics down on each row so that it is centered vertically in the...
2
by: Nina | last post by:
Hi there, I've tried everything that I know to prevent usre resizing datagrid columns, but nothing works. Following are the code that I used. Please tell me what's wrong with them. Thank you....
1
by: Jason Huang | last post by:
Hi, In the code: DataGrid.HitTestInfo hti = dataGrid.HitTest( e.X, e.Y ); dataGrid = ! (bool) dataGrid; Would someone tell me what the line doing: DataGrid.HitTestInfo hti =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.