Hi,
I have a datagridview like this one:
| foo | bar | baz | ...
------------------------------------------
Name 1 | asd | dsa | sad | ...
Name 2 | ...
Name 3 | ...
... | ...
Name X is in RowHeaderCell and I want to sort this datagridview by name, how can I do that? datagridveiw.Sort() wors only for columns and no...
Hi,
Can you please suggest me that how to get cell index(row & column index) of flex datagrid cell
...
I've started hacking together a little application for managing a list of addresses and contacts. I fancied going the way of using XmlSerialization on custom objects, but have come up against a first hurdle in that I can't sort a DataGridView on a custom object collection without implementing BindingList.
Which has got me wondering whet...
Hi!
I have the following situation: there is a table in the DB that is queried when the form loads and the retrieved data is filled into a DataGridView via the DataTable underneath. After the data is loaded the user is free to modify the data (add / delete rows, modify entries).
The form has 2 buttons: Apply and Refresh. The first one ...
I am using a datagridview for which i am not using any datasource. I want to dynamically allocate values to it. Create my own selected number of columns and rows and name them.
Plus i want to add images to cells instead of data .
as for changing columns text we can use
grid.Columns[0].HeaderText = "Frist Column";
how to change use it...
I have a gridview control on a page where I need to do a join query. I've written the LINQ query like so:
from v in view_result.Find(f => f.user_id == Session["username"].ToString())
join od in article.All() on v.article_id equals od.article_id
orderby v.view_date descending
select v;
I can't figure out how to write it in the other su...
I have a custom datagridview column with some extra properties that, in order to improve performance, need to be set only when the column type changes.
It's not possible to override the ValueType property and I can't see any relevent events for a datagridviewcolumn.
Is there a workaround?
...
This a WinForm C# application problem.
I have a DataGridView and I need a customized type of DataGridViewColumn such that when my mouse is over a cell on that column, the cell paints something special on it. I found a way of overriding the DataGridViewTextBoxCell to do the painting myself. That article shows an example of implementing a...
Where can I find a code snippet which can convert a DataGridView to a PDF document using iTextShape or something similar?
I want to have the same table headers as in DataGridView in my PDF document.
...
hi
how Can I get data that fill gridview?
I want to get value One of feild that I see in grid view.
...
I understand how to use delegates to update controls on the main control thread, works like a charm. My problem here is if I'm adding a large dataset (say 2000 items) to a bound datagridview it takes 5-8 seconds for the grid to populate and during that 5-8 seconds the whole gui is locked. How can I update the datagridview such that it ...
I'm new to c#. Can you suggest a useful link to convert datagrid to PDF.
...
Hi all,
I have a forms application, showing results of several DataTables into several DataGridViews, each appearing in a different tab of an application.
I've noticed weird behavior when I reload the data (a single button invokes filling all DGVs from the matching DTs): DGVs with a lot of rows (which require vertical scrolling) which ...
Late Edit I tagged this as a C# question as well as C++ because the problem presents itself in both languages, and solution if shown would most likely be in the C# (the majority of the market).
I have been developing an application under .net 2.0 (C++ to be specific, but irrelevant).
This application uses a custom derived datagridview...
i am using data grid view in C# winforms, lets say there are n records that i am displaying after that the (N+1)th empty row is always displayed. how to make it not show\hide
...
I just started learning Visual Studio a couple of weeks ago and everything is way over my head. Can you please give me a copy of the code I'd use to format both a date column and a price column? I am also not seem to be getting the gridview to show the checkbox. I'm stuck pls help. I am using visual studio 2008 and would want to pull out...
I would please like to retrieve data from a xml file based on user input with date. I would like to compare the user input date with the date in the xml file and if its greater than the xml file date, it should retrieve it. my linq query looks like this thanks in advance.
XDocument xmlDoc = XDocument.Load(Server.MapPath("xml/data1.xml")...
I have a DataGridView that is bound to a DataTable, is there a way to reorder the rows in the DataGridView and have the changes reflected in the bound DataTable?
...
Hi, I need to populate a DataGridView conditionally. The data comes from one XML file, e.g.
<?xml version="1.0" standalone="yes"?>
<people>
<person>
<name>Bob</name>
<dogs>
<dog><name>Rover</name></dog>
<dog><name>Rex</name></dog>
</dogs>
</person>
<person>
<name>Jim</name>
<dogs>
<dog><name>D...
Good morning all,
I'm having a few problems with a method in my C# code that should enable a DataGridView to be saved to a .txt file.
The code is as below:
private void saveToTxt_Btn_Click(object sender, EventArgs e)
{
filenameText.Text = serviceDataGrid.Rows.Count.ToString();
//string toOutFile = @"C:\" + filename...