Displaying an icon in a DataGrid's RowHeader?

  • Thread starter Thread starter Olaf Rabbachin
  • Start date Start date
O

Olaf Rabbachin

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
 
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/d...systemdatadatarowclasssetcolumnerrortopic.asp

Ken
--------------------
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
 
Hi,
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/d...systemdatadatarowclasssetcolumnerrortopic.asp

Thanks, that's nice to know as well!

Cheers,
Olaf
 

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

Back
Top