408 Topics

Member Avatar for
Member Avatar for judithSampathwa

hi there, i have a datagrid view which has a calender column. in the datagridview row the calender column icon in the datagridview cell does not show, it appears as a datagridview text box,when you double click on the datagridview calender column cell,the datagridview calender column will display the calender …

Member Avatar for Geekitygeek
0
214
Member Avatar for judithSampathwa

hi there, how can i assign a calender control to datagrid view cell by C# code.(like assigning values to a combobox in C# codeas below) [CODE] DataGridViewComboBoxColumn combobox = (DataGridViewComboBoxColumn)dgvActions.Rows[r].Cells[3].OwningColumn; combobox.Items.Clear(); combobox.Items.AddRange(u.LoadUSEmp()); [/CODE] thankxxx

Member Avatar for Geekitygeek
1
173
Member Avatar for judithSampathwa

Hey I have a question regarding datagridview cells, I have made made the rows that display data from the database as read only, but the thing is when I click on one of the cells an event triggers out, I have coded for cellcontentclick, cellvalidating, currentcelldirtystatechanged, editingcontrolshowing. When I clik …

Member Avatar for judithSampathwa
0
463
Member Avatar for MatejM

Hello everyone, First of all sorry for my English. How can I rename headers in dataGridView? When I press on Find button all works just fine. I get the information wich I want. But headers of columns in dataGridView have names just like in database (PersonID, Name_Person,... ). I would …

Member Avatar for PierlucSS
0
450
Member Avatar for nfrmn

Hi all, I'm developing a graphing application that plots several lines from a protein sequencer that outputs its values in .csv format. I've read the csv into a DataGridView just fine, which is laid out like this: Cycle | A1 | A2 | A3 (all the way up to A12, …

0
124
Member Avatar for judithSampathwa

Hi there, I have a question regarding datagridview in C#. I need to validate the cell as soon as the value is selected from the datagridview. I coded the cellEndEdit but the thing is the event is triggered after when I click somewhere else in the form. Why is that. …

Member Avatar for Geekitygeek
0
70
Member Avatar for judithSampathwa

Hi there, I have a question regarding excel in C#. I have a datagridview and in that I have a datagridview cell button to open an excel file and make it visible, and another to upload to save the file to a folder in a project folder, I add the …

0
76
Member Avatar for Nitin Daphale

Hi , [COLOR="Green"]In my [B]winform [/B]application , am uploading documents on a [B]server[/B](within a directory). I have a grid that showing list of documents that uploaded on server. Now I want to view a document with [B]a specified document viewer[/B]( or default viewer) as soon as I click on that …

Member Avatar for Geekitygeek
0
85
Member Avatar for starlight849

Hello, I am having a problem. I am filling a datagridview straight from an oracle sql query. The datagridview is filling properly using this code. [code] Try cmd.CommandText = "SELECT *" & _ "FROM oracle database Dim da As New OracleDataAdapter(cmd) Dim DMdt As New DataTable da.Fill(DMdt) If DMdt.Rows.Count > …

Member Avatar for starlight849
0
101
Member Avatar for judithSampathwa

Hi there, I have a question relating to datagrid view in C#. I have a datagrid view in a form with a calendar column a check box column and a text box column. What I want to do is when the user clicks on the datagrid view check box column(column …

0
78
Member Avatar for WHchaz1027

Please Help... What is the equivalent of Datagridtablestyle of Datagrid to Datagridview? I want to customize columns of my Datagridview in Form Load event. Thanks in advance..

0
56
Member Avatar for datapham

Hi, i have tried to insert all rows at one time from datagridview c# into a table in database , although the table gets all the rows from datagridview but it always gets the values of the last row from datagridview for all the other rows , so all the …

Member Avatar for finito
0
323
Member Avatar for judithSampathwa

Hey there, I have a interface which loads the data from the database. It loads the data to the datagridview, and text boxes. When I load the data to the datagrid view how can I make it uneditable so that the validations and other datagridview event scan not be occurred. …

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

Hi there, I am loading data to a datagridview from the database. How can I make the cells that were loaded from the database to only read only. I have a button in the interface so that I can add arrows to the same datagrid view. How can I make …

Member Avatar for judithSampathwa
1
101
Member Avatar for andrewktmeikle

Hey, I've got a datagrid which depending on fields that the user fills in will display some data, code is : [code] Try queryList = LSet(queryList, Len(queryList) - 4) 'TODO: This line of code loads data into the 'VbDataBaseDataSet.marketingDB' table. You can move, or remove it, as needed. Me.MarketingDBTableAdapter.Fill(Me.VbDataBaseDataSet.marketingDB) Dim …

0
84
Member Avatar for arelius

Hello friends, I know that on the Layout options of the DataGridView control that you can set the AutoSizeColumnsMode to "Fill". I noticed that the "Fill" setting is not available for the AutoSizeRowsMode. Does anybody know a workaround so that I can have all the rows automatically "fill" in the …

Member Avatar for arelius
0
914
Member Avatar for starlight849

Hi, I am filling a datagridview with multiple columns from my oracle database. It has become necessary that I add a column with a checkbox. I figured this out. [icode] Dim cbPart As New DataGridViewCheckBoxColumn DataGridView1.Columns.Insert(1, cbPart) With cbPart .HeaderText = "PART" .Name = "Part" .DisplayIndex = 0 .Frozen = …

Member Avatar for starlight849
0
181
Member Avatar for NH1

Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box …

Member Avatar for ious
0
357
Member Avatar for judithSampathwa

Hi there, I have a question regarding datagridview in C#, when a form loads I have given the command to add a new row to the datagrid view , and in that datagridview there is a combobox and has items In it.when the form loads I want one item in …

Member Avatar for nick.crane
0
92
Member Avatar for jay200032

Hi Everyone, I'm having problems with Datagridview Column I have a dataset containing a table called Inventory, which i databound to my datagridview. At my form load event, i set one column's backcolor to blue like this- dgvBrowseBooks.Columns("Title").DefaultCellStyle.BackColor = Color. But when i run the program, i get this error …

Member Avatar for MeSampath
0
145
Member Avatar for andrewktmeikle

Hi team, I'm having some issues getting the results of my query to output on a data grid. I'm using an sql query to get the data from access, which is working fine, but then I want to output it onto a datagrid. My code is as follows just for …

Member Avatar for andrewktmeikle
0
236
Member Avatar for judithSampathwa

Hi there, I have a question regarding datagridview in C#. I have done the validateion for the datagridview in the cellvalidating event. And for the error message to display in the specific cell that the validation is done I have to click on another place for the error message to …

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

hi there, i have a datagrid view and it have a datagrid view combo box in it. i use the below code to load data to the datagrid view combo box. [CODE] DataGridViewComboBoxColumn comboBox = (DataGridViewComboBoxColumn)dgvAction.Rows[i].Cells[1].OwningColumn; comboBox.Items.Clear(); comboBox.Items.AddRange(m.LoadUSEmp()); [/CODE] what i want is how can i display the first value …

Member Avatar for rupeshbari
-2
257
Member Avatar for starlight849

Hello guys and gals. As always any help is much appreciated. I am at a dilema. I am filling a datagridview with very lengthy results. Roughly 60k rows on average. I am filling them via an oracle database using a table adapter. The records then have a filter placed on …

Member Avatar for Oxiegen
0
233
Member Avatar for starlight849

Hello all I am new to the community and have been stumbing across a problem with my code. I have a program that is connecting to an oracle database. I am using the table adapter to fill a combobox to select a model. Then I am connecting to the database …

Member Avatar for starlight849
0
6K
Member Avatar for judithSampathwa

hi there, how can i can i give the name for the datagridview button cell in a datagridview. where can i give the text for the datagridviewbutton cell to be displayed?? thankxxxx

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

hi there, this question have posted before also, but i ahave some more questions as well. when i try to validate the datagridview cell which evet should i use in the datagrid view. i and using the dgvActions_CellValidating event,but the thing is i want to validate the cell after the …

Member Avatar for judithSampathwa
0
1K
Member Avatar for Member 784811

I need to design a search/filter for a DataGridView. The search contains 2 comboboxes and 1 textbox. combobox1 are the field names, combobox2 is the criteria (=, <>, like), and the textbox is to input values. For example: Users will select the Road Name field from combobox1, "=" from combobox2, …

Member Avatar for pritesh2010
0
114
Member Avatar for Member 784811

Im creating a filter/search for a datagridview in VB. I have a two comboboxes and one textbox. combobox1 selects a field, combobox 2 selects criteria, textbox is for values. After I select my field and criteria and enter in my value, I hit a Go button and run the following …

Member Avatar for pritesh2010
0
157
Member Avatar for judithSampathwa

hi there, i have a email textbox in the datagrid view, when i try to validate the datagrid view cell in the cellvalidating event, the current value is not take to the email varialbe, it is showed as null. y is that. how can i solve this. [CODE] if(e.ColumnIndex == …

Member Avatar for nick.crane
0
90

The End.