408 Topics

Member Avatar for
Member Avatar for manutd4life

Hello i had a datagridview with data in it and i wanted to display the selected row in textboxes here's the code i tried by i think its totaly wrong [code=vb.net] Private Sub DataGridView_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick Dim i As Integer i = DataGridView.CurrentRow.Index …

Member Avatar for Muhammad Nauman_1
0
14K
Member Avatar for TheGuy831
Member Avatar for TheGuy831
0
2K
Member Avatar for TheGuy831

Hi Im trying to Populate my datagridview from data scraped off of webpage i Want to be able to report progress when datagrid finished updating.. with a progressbar.. Please Help!!!!!! Thank You.. Heres My code Dim theElementCollection As Windows.Forms.HtmlElementCollection theElementCollection = Form1.WebBrowser2.Document.GetElementsByTagName("a") For Each curElement As HtmlElement In theElementCollection Form1.DataGridView1.Rows.Add(curElement.GetAttribute("title"), …

Member Avatar for TheGuy831
0
3K
Member Avatar for jazzyb

I am creating one application visual basic and sqlce I have two forms name Form1 and Form2. I used Form1 to add data to database using OLeDb command and used Form2 to show data in datagridview by using dataset I used following code: FFORM1 CODE is as following [code] Private …

Member Avatar for spandan_1
0
3K
Member Avatar for santosh.pandey.1293575

hi to all, i have an menustrip in the form MAIN i want to load menustripitems as per the user permission given in the tbluser database table which load during form load event in datagridview DataAdapter1 = New SqlDataAdapter("Select * From tbluser WHERE userID = '" & txtuserid.Text & "' …

Member Avatar for Alan0610
0
767
Member Avatar for mac-mac

Can you guys help me how to make this happen? I want to have a row validation for adding of items. I have a datagridview named **datagridview1** with columns **dgvTxtItemCode, dgvTxtItemDesc** and so on. I want to add a validation wherein whenever inputted the same itemcode or item desc a …

Member Avatar for Mr.M
0
745
Member Avatar for sashiksu

Hey I need help from danniweb . I try some codes according to my knowledge to make this code. I load some valuse to data grid view from mysql table. Think there are 10 records loaded to data grid view. Then just I want to make 10 records to generate …

Member Avatar for DenisOxon
0
337
Member Avatar for Mike Bishop

I am importing data from excel into datagridview its kind of working fine. my data is like this in excel 10001 MR NEW 10002 MR OLD 10003 MR CLEAN 1MB21 MR DIRTY 1BA12 MR DIXON 1EA12 MR RYDER When I load the data all is loaded untill it gets to …

Member Avatar for Rene vK
0
366
Member Avatar for Lethugs

Hi under this event Private Sub dgSO_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgSO.CellContentClick if user click the checkbox in datagridview, a window pops up and ask data when user press escape (no data input), the popup form will dispose and the checkbox should be unchecked This code …

Member Avatar for Santanu.Das
0
898
Member Avatar for Lethugs

Hi, I have 2 checkboxes in a datagridview I added this code Private Sub dgSO_CurrentCellDirtyStateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgSO.CurrentCellDirtyStateChanged If dgSO.IsCurrentCellDirty Then dgSO.CommitEdit(DataGridViewDataErrorContexts.Commit) End If End Sub and when user click the checkbox, i used this code Private Sub dgSO_CellContentClick(ByVal sender As Object, ByVal e …

Member Avatar for Santanu.Das
0
330
Member Avatar for Vicscript

Please i have trying to divide with my datagridview and is not working.please i need help

Member Avatar for Santanu.Das
0
172
Member Avatar for Johnny Joe

hi.i need help on this... i have a datagridview and when i clicked the datagridview shows in textbox and i have this one problem with my picture box...it only shows the same picture even if the saved picture in my database is not the same... Private Sub Button1_Click(ByVal sender As …

Member Avatar for renzlo
0
258
Member Avatar for Mohammad_21

hello. i get data from two database db1, db2, into one datagridview, this dtatgridview has three columns[Id, Name, DirectorId], only the first row has no director, and each Id has one or more child, so that i want to create treeview that have one main node, and each node can …

Member Avatar for JOSheaIV
0
1K
Member Avatar for VIPER5646

Hi All I have a method to configure a datagridview, meaning changing the column widths, format columns etc. If I call the configuration meathod from the form load doesn't work because the form hasn't been totaly loaded and I dont get the correct size of the datagrid, to be able …

Member Avatar for VIPER5646
0
263
Member Avatar for Suzie999

In my project I give user opportunity to add or remove a column of a DataGridView. I do not know at runtime how many columns there might be, so in order to remove it or add one at index *n* , I need to know the column index clicked. So …

Member Avatar for Teme64
0
366
Member Avatar for Suzie999

I load some data into a datagridview, I use a loop to do that. When I need to load new data I get rid of old data like so... foreach (DataGridViewRow row in dataGridView1.Rows) { dataGridView1.Rows.Remove(row); ; } Now I try to add new rows, because new data might different …

Member Avatar for Suzie999
0
276
Member Avatar for Quazy

Hello I hope someone can show me a path to get in right direction. I need a datagridview with offset columns, as shown on the photo. I have tried to add three datagridviews next to each others, but this messes up horisontal scrolling when I add data to them. Hopefully …

Member Avatar for Quazy
0
432
Member Avatar for digiway

Hi, I select S.No, name and mark from sql database table. This table contain n number of rows. I want to add(+)/Plus the mark and display in the (n+1) row of datagridview how can i do this. Thank You

Member Avatar for ddanbe
0
227
Member Avatar for Anupam_4

Will u plzz help me for displaying the content from the database in datagridview in vb with backend mongodb?

Member Avatar for Rakhmat_1
0
882
Member Avatar for ranTHE

How to get current Selected Row in dataGridview and print using crystal report? Print Only selected current row in data gridview

Member Avatar for Mamoundi
0
9K
Member Avatar for Proctor

Hello: this is my first window app in .net and have been assigned to create a form that contains a datagridview. I decided to leave it unbound, because I need it to populate in a slightly unconventional way. I also created each column and set them as drop-downs in the …

Member Avatar for Senthil Nellai
0
5K
Member Avatar for gbhs

Hi to all, I have always had this problem where: if I have a datagrid with records like RecID Name 2 Tom 5 Rich 6 Harry To Save I will loop through the rows using the sql IF NOT EXISTS(SELECT * FROM myTable WHERE RecID= dgv.rows(i).cells(0).value say) BEGIN INSERT the …

Member Avatar for ericbk
0
199
Member Avatar for Olanrewaju_1

Hi everyone! i am currently working on a project that involves a mssql 2012 database. i have some table columns that i want to calculate and get the amount saved in the total column. And at the same time, i want to be able to display the table with datagridview …

Member Avatar for Santanu.Das
0
352
Member Avatar for Suzie999

Hi all. I have a need to use native/C++ code in C# application. I basically want the lower level functionality of C++ with a good looking C# GUI. Calling native functions from C# via Dllimport is not what I want to do. The native code will need to be running …

Member Avatar for Suzie999
0
819
Member Avatar for zelrick

Please help me, I'm not really good in programming. I've done converting text file going to excel, and excel going to DataGridView. Here's my problem: I want to get the specific one or two numbers (maybe up to three). example: 98321 12345 67890 54321 09876 'this numbers in excel. (First …

Member Avatar for zelrick
0
697
Member Avatar for Iin_1

Hi to all experts, i have a big problem here, i want to print data from my datagridview, when i select 1 row.. there is no problem, but when i try to print multiple row, just first selected row appear here is the code : private void button4_Click(object sender, EventArgs …

Member Avatar for ddanbe
0
2K
Member Avatar for teze

i want to **copy** rows from one datagridview in **form1** to another datagridview in **form2** please help me !!

Member Avatar for Hardz
0
2K
Member Avatar for computer_man

How do I import some values from .txt files to a VB.NET DataGridView and then store them on a SQL database? I don't need all file values. I don't know how to get words after ; or ;;; or 1 SPACE or 3 spaces, and after the loop is finished …

Member Avatar for zelrick
0
901
Member Avatar for sonlamhpu

Dear brother Sorry for my bad english Please help me in this case I import with big data to Datagridview It's take long time, and i want to using progessbar for wait I try to do this But it's seem not good Please help me Thank you so much! `Inline …

Member Avatar for Reverend Jim
0
1K
Member Avatar for prince_11

please I want to send records in datagridbiew 1 to another datagridview2 is like if a user click on a button it Shud be able to send maybe 5 records in datagridview1 to datagridview2 at the Same time please I need your help.

Member Avatar for Hardz
0
212

The End.