Hi,
I have a settings dialog with a DataGridView, and an OK/Cancel button. When the dialog is opened, it is supplied an XML file that may or may not exist, and display the contents. Regardless of whether or not the file exists, the user must be able to modify the data in each cell in the DataGridView, along with being able to add or rem...
How can I display an animated progress bar within the contents of a cell of a datagrid, with text in the foreground.
For instance, I want to display "Uploading..." and have the progress animated behind it.
...
Hi I want to create my custom collection, I am deriving my custom collection class from CollectionBase class as below:
public class MyCollection : System.Collectio.CollectionBase
{
MyCollection(){}
public void Add(MyClass item)
{
this.List.Add(item);
}
}
class MyClass
{
public string name;
}
Let me ask a f...
I'm working in VS2008 on a C# WinForms app. By default when clicking on a column header in a DataGridView it sorts that column Ascending, you can then click on the column header again to sort it Descending.
I am trying to reverse this, so the initial click sorts Descending then the second click sorts Ascending and I haven't been able t...
At runtime, I am adding a DataGridView to a windows form. The final column is a DataGridViewImageColumn:
Dim InfoIconColumn As New DataGridViewImageColumn
MyDataGridView.Columns.Insert(MyDataGridView.Columns.Count, InfoIconColumn)
Adding the following code will get my Information Icon (bitmap) to display in each of the column cells bu...
Hi all, I have a datagridview in C# that fills with customers based upon search criteria when a person clicks "search". The problem I'm having is that when The person clicks on the search button more than once to search for customers, or if the user wants to do a different search, all of the details from the last search are still in the ...
Hi All,
In the application I am working on, I have a TableAdapter, and a RadGridView (Telerik control - their version of the DataGridView). The TA is pulling different elements from our database, including PhoneNumber, which is stored as varchar.
In my GridView, I would like to display this format as (123) 456-7890. Unfortunately, I ...
I have a checkbox in a Flex DataGrid, and when I scroll, other rows are randomly checked/unchecked.
After reading over: http://stackoverflow.com/questions/112036/creating-a-column-of-radiobuttons-in-adobe-flex
it's clear that the itemRenderers are getting recycled, but the problem I have with the solution presented there is it moves i...
I have very simple form along with two database tables.
In this form is a ComboBox, which reads the first table tblProjects. It displays a "Project Name" to the user and when selected, filters a DataGridView, which reads its data from the second table: tblData.
tblData does not contain "Project Name" but instead a Guid that both tabl...
I am using an Xceed datagrid to display data retreived from database. I would like to allow users the ability to edit the values that are being displayed on the grid. But it appears that when there is a null value in the underlying datasource, the corresponding cell becomes readonly. How can I resolve this issue?
...
Creating a custom business object to slide into a dataGridView works wonders... except I can't think of a programmatic way to set the column order.
Do I have to add them one by one by hand manually again just to get a nicer sort or is there some cryptic hidden attribute I can use?
...
I have several problems with rows in a DataGridView.
Background information: The DataGridView (DataGridViewCalib) is in one TabPage of a TabControl, some columns of the DataGridView are automatically DataGridViewCheckBoxColumn as the DataSource have some colums which are Boolean. This is a Windows Form written in VB.Net with Visual Stu...
Hi, i have a Problem with DataGridView in c# and i hope you can help me :)
I added a DataGridView to my Application and bind it to DataTable.
The DataTable changing the content but the DataGridView doesnt display it...
How can i change this ?
Thanks
...
I have a custom collection let's say
MyClass
{
prop Name;
prop Address;
prop isRequired;
}
MyCustomCollection : List<MyClass>
{
}
When I do
MyCustomCollection collection = new MyCustomCollection ();
datagridView.DataSource = collection;
The datagridview is populated with three columns Name, address , isRequired..
...
Do you have any suggestions for my code below that you might have to improve the performance? This is .NET 2.0 framework, and the DataTable gets bound to a DataGridview. The data is loaded into the Datatable via .ReadXML() it doesn't come from a database. There can be any where from 80 to 100k of records. The Terms() array is what th...
Hi everyone,
I seem to be running around in circles and have been doing so in the last hours.
I want to populate a datagridview from an array of strings. I've read its not possible directly, and that I need to create a custom type that holds the string as a public property. So I made a class:
public class FileName
{
privat...
I'm using a List to bind to a dataGridView.
I'd like the user to be able to add a new row.
I've tried using a BindingList and a BindingSource.
Here's my binding (not including the combo box column I add to the datagridview before adding a datasource:
binding = new BindingSource();
binding.DataSource= _Rows;
_dg.DataSource = binding;
...
What actually happens internally when the user clicks a column header in a DataGridView? More specifically, if the first click sorts data ascending, how does it sort descending with the next click? Does it just negate the Compare() or CompareTo() result? And which interface does DataGridView use to sort items?
...
I'm using two tables from a MySQL db (let's call them db1, db2) and I have to display different views for them that are linked with each other with nested relations (using VS2005 + ADO.NET Connector). What I have been doing till now was adding new table adapters for each different view, many of which contain a lot of IF statement and gen...
I've added a checkbox column to a datagridview in my C# form. The function needs to be dynamic - you select a customer and that brings up all of their items that could be serviced, and you select which of them you wish to be serviced this time around.
Anyway, the code will now add a chckbox to the beginning of the DGV. What I need to kn...