1. S

    Printing options for DataGridView

    Hi All, Does anyone know any methodology to create direct print-out from datagridview. From googling what i found is that it's quite complex process. Is there any package available to dot the same (i.e. nugget package). I have datagridview populated from database and I want to make PDF print of...
  2. P

    Question Problem sorting DataGridView

    Hello All, The problem I'm having is when I programmatically sort my DataGridView I get the following exception: System.InvalidOperationException: DataGridView control must be bound to an IBindingList object to be sorted. This shouldn't be happening. The data source is a DataView which of...
  3. R

    How to filter datagridview using multiple combo boxes?

    Hi all! I am very new to coding and am trying to learn C# through little project. I spent a week or more trying to find solution, but although there is many threads, none of them made sense for me and couldn't get it to work. I have a form with datagridview and I want to create another 5...
  4. C

    Error loading datagridview...

    I have seen several postings on this error, but I can't seem to make the answers fit my problem. Generally, it is a simple dgv load with a simple query. The error I get is: Error: System.ArgumentOutOfRangeException: Index was out of range. Here is the code: string sSQL = "select * from...
  5. I

    Question dataGridView1_CellPainting causes flickinger view and effects other control

    I'm using dataGridView1_CellPainting to remove border for merged cells. The view works fine, except for the last line "e.AdvancedBorderStyle.Top = DataGridViewAdvancedCellBorderStyle.Single;" statement, which causes view to flicker and strange behavior to another DateTime picker control in...
  6. A

    DatagridView Multi Header Columns & Rows

    Good evening; I'm looking for a source code to make a datagridView with Multi Header Columns and Multi Cell Header As shown in the image below All that is in gray is the head that I am trying to code.
  7. A

    Question DataGrid Collapsible

    My Problem is that my professor wants to combine same name in 1 row and will collapse on click. but I dont have any Idea how to do it can you give me some headstart thanks! more power this is my current view and my SP
  8. U

    Question Datagridview Not populating

    Hello, i have a method private void FillLevyRoll(), i put the method in a button on click event to fill a datagridview dgvLevyRoll my problem is when i run i am not getting an error and the dgv is remaining empty.Im lost confused tried but to no avail.The query works in SQL management studio...
  9. B

    Tip Merge Datagridview columns headers

    This tutorial explains how to merge Datagridview columns headers: Merge Datagriview columns headers - FreeLearningDz Columns headers will be like:
  10. A

    Question Display datagridview datas to richtextbox using a button

    First of all hi to all, I am new to this forum. I am a newbie at c# programming and no other programming experience. Please be kind to me and help me thanks . If you have any reference site that can help me or anything please do . Also english is not my native tongue so no grammar nazi pls and...
  11. sanjeewa.nibm

    DataGridview update and Datagridview refresh

    What would be the similarities and differences in DataGridview.Update() and Datagridview.Refresh() methods What are the places to use DataGridview.Update() and Datagridview.Refresh() I'm little confused
  12. A

    Question Remove check box column from datagridview when clear datagridview

    i have created datagridview dynamically with check box column,once i refresh my datagrid its removes all data except checkbox column,below code for adding checkbox column in datagrid DataGridViewCheckBoxColumn chk = new DataGridViewCheckBoxColumn(); dataGridView1.Columns.Add(chk)...
  13. T

    Question datagridview doesn?t show the datasource

    i?m trying to bind a list to a datagridview. i do that: public void seedatagrid(List<myClass> liste2) { dgv_TraceItems.DataSource =liste2; } and the datagridview has the data, but it doesn?t show anything. could you help me?? how can i resolve the problem?? thank you the class...
  14. A

    Set Location of ListView below DataGridView Active Row

    ools: Visual Studio 2010 Ultimate, Language C#, Database MySql Hi, I am searching this a while, but to date didn't find any suitable solution. I've a form with bound DataGridView with 5 columns, ProductID, ProductName, Qty, Price and Amount. After normal data entry user can click button...
  15. J

    KeyUp in datagridview with EditOnEnter not working

    Hello People! I have a problem in my DataGridView: I like to have a cell Always be in editmode as I enter it. (DataGridView.EditMode = EditOnEnter) This works perfectly! I want to use the function-keys F7 and F8 for two different things: F7 adds a new record, F8 opens the selected...
  16. J

    Question Datagridview giving errors on adding a new row on the comboboxcell

    Hello, I have problems with a comboboxcolumn in a datagridview: As I want to insert a new row, I get a "System.ArgumentException: The value of the DataGridViewComboBoxCell is invalid." I am using Linq to SQL to populate the data from different tables: - Table Customer (ID (key), Name,...) -...
  17. A

    DataGridView with Identity Column

    I am using Visual Studio 2010, language C# and SQL Server Express Edition as backend. There is one form with DataGridView control, I've setup columns manually using designer, then on runtime set the data source. connectionString = ConfigurationManager.AppSettings["connectionString"]...
  18. A

    Insert Data to Master/Detail table in Sqlserver 2005 with Foreign key

    I need some help to make a Order Form in C#. My development environment is: Microsoft Visual Studio 2010 Ultimate Sql Server Express Edition 2005 Programming Language C# Sample Database = NorthWind (Tables=Orders and OrderDetails) I've create a Form for order dataentry, which contain Textbox...
  19. A

    Question Save data from Unbound DataGridView to Sql Server 2005 and then Bind to records

    Hi All Experts, I am a newbie to C#, my development environment is: Visual Studio 2010 Ultimate Edition Sql Server 2005 Programming Language C#** I've a form with Unbound Datagridview, from which data is save to Sql Server 2005 by looping through For..Each and pass SQL INSERT Statement when...
  20. nK0de

    Question Painting the cell background of a custom DataGridView column

    I'm trying to create a DataGridView column hosted with Radiobuttons. I've been following this MSDN article. I've uploaded the Visual Studio project here. And for those who are unsure about downloading unknown attachments, here's the code I've written so far. using System; using...
Top Bottom