Questions tagged [datagridviewrow]

Represents one row in DataGridView

Learn more about DataGridViewRow on MSDN.

110 questions
0
votes
2 answers

Building a DataGridViewRow and Adding to a DataTable

I'm trying to programatically build a DataGrid from 2 different sources of data. I have a List and a DataGrid. The problem isn't with my data processing, It's to do with the values of the DataGridViewRow object. Here is my code: protected void…
Dan
  • 533
  • 2
  • 6
  • 21
0
votes
2 answers

How do you properly use the GetRowCount Method with multiple runtime generated datagridview controls?

I have multiple runtime generated datagridview controls and I would like to be able to see if the user has selected multiple rows in a specific datagridview. For some reason, the result of the following is always zero. When I F9 stop the program, I…
J2Tuner
  • 411
  • 1
  • 5
  • 17
-1
votes
1 answer

Setting value for DataGridViewRow.Tag when data binding by DataSource for DatagridView

I am trying to set a value for DataGridViewRow.Tag when data binding but I don't know how to do it? I tried with DataRow row = table.NewRow(); But row doesn't have tag. How to set a value for DataGridViewRow.Tag when binding DataGridView to table…
-2
votes
1 answer

add row to datagridview without index C#

I am currently adding rows to multiple datagridviews in my winform application due to when something does not exist, the index is out of range. I did a live meeting with my team and they would like all of the items to be in one single datagridview.…
clerktech
  • 141
  • 3
  • 18
-3
votes
1 answer

Even same strings does not match

Hello i have a datagridview which has datasource of list and this list is: public class UniqueNounWithFreq { public int freq { get; set; } public string word { get; set; } public UniqueNounWithFreq(string word, int freq) { …
Eray
  • 7
  • 2
1 2 3 4 5 6 7
8