Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > How to add text to DataGrid in a user control?
 

How to add text to DataGrid in a user control?

Hi,

Ihave developeda toolWindow in my Add-in.
I have added a dataGrid to that toolWindow in the userControl.
I want the output of some function to be displayed in the dataGrid cell when i run the code.

how can i achieve this?

Is there any function which helps me add the text to the datagrid?

Regards,
Nayana


Nayna  Thursday, December 11, 2008 9:19 AM
Hi!

To show a text in a datagridview cell:

datagridview1[rownum,colnum].Value="text";

Instead of "text" put the output of your function and that't is.

Regards,
Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
Lucian Baciu  Monday, December 15, 2008 9:21 AM
Hi!

To show a text in a datagridview cell:

datagridview1[rownum,colnum].Value="text";

Instead of "text" put the output of your function and that't is.

Regards,
Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
Lucian Baciu  Monday, December 15, 2008 9:21 AM

You can use google to search for other answers

Custom Search

More Threads

• Merged cells by handling DataGridView.Paint smears when scrolled
• æ— æ³•打开文件 C:\Program Files\Terrarium Server [Beta 1]\\website\chartdata\33b4a0ad-aefb-4661-8e5b-7152b87f0ecc.gif 以进行导出ã€
• DIfficulty with Running Server on Local Machine
• pocket taskvision memory leak
• Change the scrollbar
• Image Modifications
• Custom Skins
• Converting Windows Application to DLL
• access application settings from code
• Install TV Server into SQL Named Instance?