Solved

change specific cell from button to text in datagridview

Posted on 2009-04-03
1
245 Views
Last Modified: 2012-05-06
I have a DGV with two columns that are defined as buttons.  But there are several rows that I do not want the button.  How do I change those specific rows from the button type to just a text type?
0
Comment
Question by:ddepuemd
1 Comment
 
LVL 2

Accepted Solution

by:
minjiber earned 500 total points
Comment Utility
This code will chage row index 0, column index  2
Dim c As DataGridViewTextBoxCell = New DataGridViewTextBoxCell

c.Value = "Cell Text"

DataGridView1.Rows(0).Cells(2) = c

Open in new window

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now