Questions tagged [datagridviewtextboxcell]

91 questions
0
votes
0 answers

DataGridViewTextBoxCell multi-line editing using button

How to do the multi-line editing for non-multi-line DataGridViewTextBoxCell like the text property in a Visual Studio project? the multi-line editing should appear after clicking the dropdown-like button, but textboxcell should display only the…
0
votes
0 answers

DataGridViewTextBox strange black box

I have different kinds of cells in a single DataGridView column. When the user clicks on the box it used to turn entirely black. Now I am able to capture the Entered event from the EditingControlShowing event and set the backgroundColor to…
micahhoover
  • 2,101
  • 8
  • 33
  • 53
0
votes
0 answers

DataGridViewCell.ReadOnly = false does not work

OK, so I have this piece of code where I try to set all rows but a few to readonly. Since the condition change on a per-row basis I set all cells to ReadOnly and then unlock those I need. There's no databinding involved. I use the grid "as…
0
votes
1 answer

Datagridview keeps locking/lagging when an update is performed to a row (to the cells at the row)

I'm updating my cells values from Yahoo's "Stock API". It works like a charm everything is updating properly , but when the updates are performed which is almost all the time since their in a timer with an interval at 3000 milliseconds. How can I…
0
votes
1 answer

How to bind DataTable to DataGridView that consists of a DatagridViewTextBoxColumn and a DataGridViewComboBoxColumn?

I want to ask you a question about my project. I have a DataGridView in my C# project which has two columns: One is DataGridViewTextBoxColumn, the other is DataGridViewComboBoxColumn. I have usernames and authorities columns in my DB. Usernames are…
0
votes
1 answer

how to get value of users' values in textboxes in GridView

I have used a DevExpress GridView and I put textboxes in QUANTITY column. Users are supposed to enter quantities in those textboxes. When they click OK button, I need to get what they entered into textboxes. TextBoxes are in the last column. I am…
Arif YILMAZ
  • 5,754
  • 26
  • 104
  • 189
0
votes
2 answers

Textbox dropdown bubble when text goes over visual space?

I looking for a way to add what would look like a drop down box when the user reaches the end of the visible space of a textbox. the drop down would then show what they have already typed pulse what there still typing tell they hit enter. Any ideas?…
0
votes
1 answer

textboxcell on datagridview allow only one char by default

I have a datagridview with textboxcell. When I enter the cell and type a string it only shows the last char of the string. It replaces the last char with the new char. In order to write a complete string I need to click on other cell of any other…
amirm
  • 41
  • 1
  • 11
0
votes
1 answer

Overriding DataGridViewTextBoxCell and CellPainting

I inherited DataGridViewTextBoxCell because I need to add some custom property to it. At run-time after creating the DataGridView instance and bind the data I do the following: For k As Integer = 0 To grid.Columns.Count - 1 …
Drake
  • 8,225
  • 15
  • 71
  • 104
0
votes
1 answer

Get all the values of a dataGridTextboxColumn

I have a dataGridView that has a column called Date Due which is of type System.DataTime. I want to put these dates in a monthCalendar. Do I have to iterate throught the column? Do I have to cast it?
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
0
votes
0 answers

Button disappears but the other column members of the row remains visible in datagridview c#

I am writing a code to make sure that if the translate button is pressed a new row appears but all the row members except string text are visible..Now i have written the code but it only makes the button disappear and all the members are still…
soldiershin
  • 1,612
  • 1
  • 18
  • 29
0
votes
1 answer

Multiple cells within a cell in a DataGridView

Is it possible to have multiple (CheckBox or TextBox) cells inside a cell in a DataGridView? If so, how would you begin to do this? If this is not possible, what's the best way to separate multiple sections of text within one cell?
Glimpse
  • 462
  • 2
  • 8
  • 25
0
votes
1 answer

Filling textbox automatically when combobox choose a value

I have a table (WareTable in SQL Server). I need to use a datagridview(=dgv) in my form. In my dgv , 1st column is a ComboBox (WareName). I want when choose a value in ComboBox , next column (sellPrice) will be filled automatically. …
0
votes
2 answers

DataGridViewTextBoxEditingControl background color

In a DataGridView I have some DataGridViewTextBoxColumn and I want to set a background color to the textbox that appear when I edit a cell: only to the textbox, not to all the selected cell! I know that the editing control in a…
0
votes
1 answer

Jquery: Appending a String to a textbox in gridview

I have a gridview column of type text. I want to append a string "C:\" to the dynamic textbox contents. How…
Maverick
  • 1
  • 1