35 Topics

Member Avatar for
Member Avatar for AmrMohammed

Greetings I'm making a WindowsFrom for an invoice and I'm having a problem with datagridview control that consists of two **datagridviewcombobox** columns and another two **datagridviewtextboxcolumn** First of all I build the datagridview within run-time, I mean adding its columns within run-time datagridview.columns.add(datagridviewcomboboxcolumn1); datagridview.columns.add(datagridviewcomboboxcolumn2); datagridview.columns.add(datagridviewtextboxcolumn); datagridview.columns.add(datagridviewtextboxcolumn2); I restored the product …

0
83
Member Avatar for Sammys.Man

hi guys, i have created a datagridview with a combobox, which pulls out info from my DB, what i am trying to do now is, populate the rest of the datagridview with the information linked to the selection. failing that i want to populate a label with the selected item. …

Member Avatar for Fenrir()
0
189
Member Avatar for dennysimon

hello all I wonder how to fill datagridviewimagecolumn with an icon. I mean if I place cursor in rows[2],Cells[3] and then i press right mouse down,then certain icon placed in that cells if I place cursor in rows[4],cells[3] and then press left mouse down,then another certain icon placed in that …

Member Avatar for brianmanee
0
2K
Member Avatar for anisha.silva

Hi i have a checkboxcolumn in a datagridview, once i check one of the checkboxes in that column, how do i make that other checked boxes to be unchecked? i was doing sothing as below foreach (DataGridViewRow row in dgvEmerContact.Rows) { if(!string.IsNullOrEmpty(row.Cells[0].Value.ToString())) dgvEmerContact.Rows[0].Cells[0].Value = bool.Parse(dgvEmerContact.Rows[r].Cells[0].Value.ToString()); } didn't work appreciate a …

Member Avatar for JOSheaIV
0
244
Member Avatar for robin99

hello all I have a datagridview (say it dgv1) with only two columns ,column for name field and column for age field I have another datagridview (say it dgv2) with the same two colums as dgv1 I create datatable ,(say it table1) then I get data from dgv1 and fill …

Member Avatar for Mitja Bonca
0
115
Member Avatar for ali.alipanahi

hi i want to bind data form data set into datagird view columns but i can't is there some one to help me pleaaaaaaaaaaaaaaaasssssssssssssssssseeeee

Member Avatar for ali.alipanahi
0
163
Member Avatar for fanan

Hi there, i faced a terrible problem in datagridviewcomboboxcell it's an sales program and in the sales invoice i want to bind different data in comboboxcell at every row according to value of cell at the same row i search the web but all examples depend on the data of …

0
48
Member Avatar for fanan

Hi there, i faced a terrible problem in datagridviewcomboboxcell it's an sales program and in the sales invoice i want to bind different data in comboboxcell at every row according to value of cell at the same row i search the web but all examples depend on the data of …

0
74
Member Avatar for viswa_007

I am using a datagridview in my windows application in VS-2005. How can I convert some cells in a particular textbox column in my datagridview to checkbox cell types. Please provide some suggestions with code (if possible) Thanks in advance

Member Avatar for Janice44
0
2K
Member Avatar for orville

Hi All Im using datagridview to load data but i want to filter the grid using the index selected with in a combobox.

Member Avatar for ddanbe
0
89
Member Avatar for virusisfound

Hi, I am working in C# windows application & I have one [B]combo box[/B] which have the list of items. and one [B]datagridview[/B]. now I want to [B]add new rows[/B] as i [B]select the combo box items[/B]. The number of row add in datagridview till i select the items from …

Member Avatar for bhagawatshinde
0
351
Member Avatar for niketakapoor

[COLOR="Red"]in the search form by display button records are displayed from database....but i wnt to change the header text of data grid column like member_id as memberID....[/COLOR] [B]how can i do it[/B] as i m tring [CODE]datagridview.column[1].headerText="memberID"[/CODE] [COLOR="Green"][B]it shows error of indexes of collection so what code i will use …

Member Avatar for Mitja Bonca
0
85
Member Avatar for AngelicOne

I'm planning to use a tabcontrol instead of making different forms to separate the three datagridview. Will it affect the performance? What if each tab page, which is three, contains datagridview that queries 200 records each? Will the application handle all 600 records at once?

Member Avatar for Momerath
0
247
Member Avatar for MARKAND911

I have a Datagridview in C# windows Application In it i have one ComboBoxColumn out of 12 datagridview columns Now I want to disable/enable cells of particular row on ComboBoxColumns selected index chaged event according to Condition. Not Gridview's whole column should enable/disable, I want Cells of particular selected Row …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for virusisfound

I want to display my table columns and data in datagridview at run time when user select table name I know that i have to set bindingsourse property . But i dont know how to do programming for that can you tell me.

Member Avatar for virusisfound
0
274
Member Avatar for hirenpatel53

hello all i am developing win application into it i am using datagridview with one dynamically created datagridviewcomboboxcolumn the problem is all things working fine but while i change the value of that combo box and click on another cell the value of combocolumn gets cleared dont know whats wron …

Member Avatar for prvnkmr194
0
75
Member Avatar for hirenpatel53

hello all i am developing windows application and in a form i have 2 panel one with datagridview1 named dg1 and second with datagrideview2 named dg2 and dg1 is databound so while i click on any cell of dg1 that row will transfer to gd2 and get removed from dg1 …

0
56
Member Avatar for markthien

Hi guys, I have implemented pagination in datagridview by using example from this page [url]http://www.codeproject.com/KB/miscctrl/Pagable_DatagridView.aspx[/url]. The pagination works well. However, when I create 2 datagridview with each using different bindingsource, and I click on next for the first datagridview, the other datagridview also automatically paginate to the next one. I …

Member Avatar for nick.crane
0
181
Member Avatar for jaron1611

Hello everyone, I am trying to set a column in my datagridview to be as datetimepicker column only. It is so easy to do it if my datagridview is not binded within database, i did it by making a user control which transform datagridviewtextboxColumn to datetimepicker from Calendar(). But my …

Member Avatar for nick.crane
0
122
Member Avatar for jaron1611

Hi all, I have a problem with date format and datagridview. There are some fields in the database table that are set to datetime format thus i want a specific cell to only accept date format, so when the user have to write within the datagridview, he should write a …

Member Avatar for Antenka
0
128
Member Avatar for thuyson

i have 2 datagridview :dgvClass and dgvStudent dgvClass shows all classes' information,when user selected a row(one class) in dgvClass,then dgvStudent will show all information of students who registered this class. Please help me!

Member Avatar for nick.crane
0
43
Member Avatar for judithSampathwa

hi there, i have a datagrid view in C#. i got the data to be displyed from the database to the datagridview combo column, as shown below: [CODE] DataGridViewComboBoxColumn comboBox = (DataGridViewComboBoxColumn)dgvAction.Rows[0].Cells[1].OwningColumn; comboBox.Items.Clear(); comboBox.Items.AddRange(m.LoadUSEmp()); [/CODE] this code is loaded when the form loads but when it load i want to …

Member Avatar for nick.crane
0
146
Member Avatar for judithSampathwa

hi there how can i make the datadrid view edit and read, i have a button called edit when the user clicks it the cells can be editable ,or else the datagrid view in read only mode how can i change the modes in code, programatically thaxxxxxxx

Member Avatar for judithSampathwa
0
181
Member Avatar for Exaktor

Hi, When I add rows in a Datagridview it doesn't show up directly. I did an update button and when I click the update button the rows show up then. I don't want an update button. Can somebody help me to add a row directly to a datagridview without updating …

Member Avatar for kvprajapati
0
97
Member Avatar for thuyson

i have a combobox ,three textbox and one button.when user choose one item in combobox, textboxes and press button,i want to filter corresponding data and show on datagridview! Please help me! Thank u so much!

Member Avatar for thuyson
0
91
Member Avatar for babbu

I am using access 07 and c#.net 2005. I have a datagridview which has one combo box column. I want to insert values in the combo box. however the value of combo box in each row will be different. [CODE] comboboxcolumnname.Items.Add(value) [/CODE] using this code i can add values to …

Member Avatar for kvprajapati
-1
172
Member Avatar for Dajer

Hi friends. I have a datagridview in my project.I want to navigate between cells( in a row) by pressing "Enter".I mean when user edits a cell, navigates to next cell by pressing Enter.(as we know navigation to the next row by pressing enter is the default action) I tried to …

Member Avatar for sknake
0
410
Member Avatar for ShailaMohite

Hi All, In my application, i have a datagridview with 5 colums, at the form load the datagridview contains one row, I am showing a combobox in each of the 4 columns to select the values (i doesnot type any thing in that 4 columns), when i press tab the …

-1
332
Member Avatar for DaveD3

I have a datagrid view which has more rows than can be displayed. There is a thumb on the right which allows the user to move up and down through all of the rows. What I need to do programtically is at any given time determine which rows are actually …

Member Avatar for sknake
0
124
Member Avatar for Rishad_rish2000

hi all, i hav added 2 combobox columns in to datagridview. when i click first combbox cell the second combbox cell value should chaged automatically. this is m y reqiurment.pls somone can hepl me to do this.

0
36
Member Avatar for Naik Dhiren

How can i Hide/shows columns in datagridview runtime ? I have a window application form with a comboBox and a grid. As according to selection in comboBox Items, I want to hide or show datagridview columns as according to combobox item selection

Member Avatar for Ramy Mahrous
0
184
Member Avatar for Gaurav arora

Hi all, I m facing a problem regarding datagridview. I have taken a gridview with a custom column with checkBox only. Every row in datagrid contains a checkbox as its first column. Now i want to trap the values of that particular row which is checked by the user. Also …

Member Avatar for rapture
0
133
Member Avatar for senpark15

hi, I using datagridview to show Set of records. User can also edit the records. If user press key enter , edited columns Should be updated. I am using Datagridview key down event. It is working in non edit mode. It is not working edit mode. The cusor goes to …

0
59
Member Avatar for kethare

hi, I want to draw the line in starting point of the column where the mousepointer is. Example I have 5 columns in the datagridview and the mouse pointer is at 3 column means that column must indicate with a line at the begning of the columnindex 3.

Member Avatar for Dabuskol
0
82
Member Avatar for sireesha.c

Hi, In my Datagridview contains itemno,itemdescription,quantity,price columns. this values can view in crystal report.in crystal report only 10 colums can able to view. so,in item descriptionin cell only 10 lines i have to enter .if it is more than that i want to display messagebox and chance is there for …

Member Avatar for Ramy Mahrous
0
148

The End.