The DataGridView is a Windows Forms control found in the .NET Framework starting at version 2.0. It is used to display and edit tabular data from many different kinds of data sources.
0
votes
2answers
21 views
Datagridview C# Object reference not set to an instance of an object
I'm still newbie in programming.. I wanna ask, I got throw Object reference not set to an instance of an object, every time I try to check value in cell in datagridview.
if (durasiUpDown.Value > ...
-1
votes
2answers
36 views
How to Programmatically Sort a DataGridView by Clicking Column Header
I have a Windows Form DataGridView that I need to apply custom sorting when a particular column header is clicked, and to reverse the sorting when the column header is clicked again.
I will implement ...
0
votes
1answer
12 views
Text separated by \n doesn't display text in new line in GridView cell in .Net windows
Text separated by \n doesn't display text in new line in GridView cell in .Net windows.I have to show account detail in grid and since account can have multiple titles, I need to to show Title in ...
2
votes
1answer
25 views
Checking duplicate Values on DataGrid
I have a DataGrid which is bound with a DataTable having two columns which store sequences, in my DataGrid these sequence columns are bound with DataGridViewComboBoxes. User is able to set sequence ...
0
votes
1answer
28 views
datagridview update, delete, and add function
I have a save function that gets called when the user wants to save data from the datagridview to the database. I'm new to using the datagridview with the datatables and performing the update, add ...
0
votes
1answer
27 views
DataTable Decrement column value after delete row
Hi. I have a DataTable one of the column is set to AutoIncrement is true. Basically I am adding some text box values to the DataTable and then binding it to the Grid View. What I am trying to achieve ...
0
votes
0answers
27 views
C# List<T> in a DataGridView Cell
I am populating a DataGridView from a JSON string. One of the objects is a List. How can I show a modal editor (like in a propertygrid) to edit the values in the List?
1
vote
1answer
16 views
How to check if my mouse is inside the Datagridview?
I would like to check if my mouse is inside/outside the datagridview. If I had my mouse outside, it should run my timer code to begin a countdown before it hides the datagridview (2 seconds in my ...
1
vote
1answer
15 views
data gridview with arrow keys using vb.net
In vb.net 2010:
I have two Datagridviews on a windows form.
when I click on the row of datagridview1, it shows the fetched result from the database in the datagridview2.
so far it is working fine.
...
0
votes
1answer
22 views
How to marge or splite celles in datagridview
I am developing an windows form application.In that application i need to add a datagridview in side datagridview column.From bellow tutorial i made an dgvcolumn.
...
0
votes
2answers
27 views
Header Text from Microsoft Access
I'm working on a project, which the fields for users to key in the data are unknown, users can create as many columns as they require.
I'm thinking to let the users to key in the data into Microsoft ...
0
votes
3answers
17 views
DataGridView issue- NullReferenceException? [duplicate]
I want to check if a particular cell of a datagridview has a particular value. So I made a double "for" loop to check through columns and rows. And there is the NullReferenceException thrown while ...
0
votes
0answers
16 views
Display strings and images stored in a folder on to dataGridView
Can anyone show me how i display images and strings stored in a folder on to a Data Grid view?The language i am using is C# and the images are stored in the folder and strings are stored in a text ...
3
votes
1answer
29 views
Binding DataGridView and SQL Table
I am new with this so i think it will be easy for you.I am making WFA application.I have DataGridView on my form and i want to insert SQL table in DataGridView.Here is my code:
OracleCommand cmd = ...
0
votes
3answers
28 views
I'm looking for a way to make my first column in my datagridview a header
Ok so I have a dataset that is pulling specific cells from an excel file and populating a datagridview column. However the cells I'm pulling really need to be headers rather than normal columns in the ...