Questions tagged [datagridviewbuttoncolumn]

The DataGridViewButtonColumn is a DataGridViewColumn implementation for Button cells

Learn more about DataGridViewButtonColumn on MSDN.

39 questions
19
votes
10 answers

C# DataGridViewButtonCell set buttons text

I need to add my DataGridViewButtonCell to Column, and I need to name each other with different names. But I didn't find any text properties. Can anyone help me, please? i do that stuff DataGridViewButtonCell b = new DataGridViewButtonCell();…
11
votes
9 answers

sometimes I want to hide buttons in a DataGridViewButtonColumn

I have a DataGridView which was the subject of a previous question (link). But sometimes the Button is null. This is fine. But if it is null, is there any way I can optionally remove/add (show/hide?) buttons to the DataGridViewButtonColumn of…
Mr Heelis
  • 2,370
  • 4
  • 24
  • 34
6
votes
2 answers

Change color of Button in DataGridView

I have searched high and low for an answer to this question.The answer on this post: Change Color of Button in DataGridView Cell does not answer my question as it regards font. I have tried the following: DataGridViewRow r =…
user5393483
2
votes
1 answer

C# DataGridViewButtonColumn and CellContentClick event

If you have a Datagridview with 2 columns, one is a TextBoxColumn and the other is a ButtonColumn: Select the Text cell. Now highlight/select the text inside the cell and while selecting (holding mousebutton down) and if you move the mousecursor…
Dorf
  • 71
  • 9
2
votes
2 answers

How to hide a DataGridViewButtonCell

I have a DataGridViewButtonCell in my DataGridView and I wanted to set the property Visible to True. I have tried: DataGridView1.Rows("number of row i want").Cells("number of cell i want").Visible = True Unfortunately it says that the property…
Hala mahala
  • 151
  • 2
  • 4
  • 20
1
vote
2 answers

Winform Datagridview button column button with multiline text

I've created a button column successfully based on the following post, including adding text to the individual buttons: How to add a button to a column in the DataGridView The problem is, my text won't fit on a single line, so I'm hoping to create a…
E. A. Bagby
  • 824
  • 9
  • 24
1
vote
2 answers

Disable Column Header click on datagridview vb.net

I have created a command button for each row on a datagridview. The code is working fine. Private Sub dgv_employees_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles…
1
vote
1 answer

DataGridView row button text not appearing

I have a DataGridView control which looks like the following at design time: Properties: Then, at run-time, that DataGridView is populated as follows: foreach (Word c in items) { dataGridView1.Rows.Add((i+1).ToString(),…
user366312
  • 16,949
  • 65
  • 235
  • 452
1
vote
1 answer

Change the text value of a button in DataGridViewButtonColumn

I'm trying to change the text of a button in a DataGridViewButtonColumn every time the button is clicked. I define the column like so: DataGridViewButtonColumn sitemapButtonColumn = new DataGridViewButtonColumn { Name = "Process", Text =…
1
vote
1 answer

Can't show the text in DataGridViewButtonColumn

I've try to practice with "DataGridViewButtonColumn" property. But here is a strange problem that I can't display the text in button in first column. ScreenShot: I try it in different methods, but it still not working. Here is my code…
user7968633
  • 11
  • 1
  • 2
1
vote
1 answer

Add two button columns to .NET web application telerik grid view

I am using a 'telerik grid view' in a .NET web project. I am using two 'Grid Button Columns' in that. The code in Default.aspx is as follows.
jayz
  • 401
  • 1
  • 5
  • 25
1
vote
1 answer

add multiple buttons to a datagridviewbuttoncell

I would like to add multiple buttons to a datagridviewbuttoncell imagine 1 column contains a simple integer count the button column next to it would have 2 buttons, one + and one - then for example subscribe the click events to increment or…
crazyghandi
  • 49
  • 1
  • 10
1
vote
1 answer

Windows Forms - How to display Update/Cancel Button in DataGridViewButtonColumn?

When I develop ASP .NET Web Applications, I use the following code to show Update and Cancel buttons when a user clicks on Edit button inside DataGridView Column.
Aung Kaung Hein
  • 1,516
  • 5
  • 24
  • 40
1
vote
3 answers

Make Button disappear in the new row in datagridview c#

This is the view of my datagridview.. This is the translate button when i click it a new row appears next to it and a new button is also initialized in that row. Now what i want is that if the translate button is clicked the new row that appears…
soldiershin
  • 1,612
  • 1
  • 18
  • 29
0
votes
0 answers

Cellclick event in multiple dynamic datagridviews

I have a windows form where data is being fetched from multiple SQL tables. If the required data is present , then it is displayed in dynamically generated DataGridView. I have added a button and a cellclick event to these dynamically generated…
Mukund Banka
  • 66
  • 1
  • 7
1
2 3