408 Topics

Member Avatar for
Member Avatar for sanjeewa.abeywardana

I have gone through "How Do I?" Videos for Visual C# but it is all about wpf , and the link is already expired Hoping for some help on this topic where user can choice columns to search in the lookup and when user pick one it search according to …

Member Avatar for sanjeewa.abeywardana
0
237
Member Avatar for Yaw_1

I have been trying fruitlessly to populate my datagridview using multiple tables from my ms access database. My code is shown below. Thanks in advance for your help. Imports System.Data.OleDb Public Class Stock_Check_Options Dim MyConnection As OleDbConnection Dim MyDataAdapter As OleDbDataAdapter Dim MyDataAdapter1 As OleDbDataAdapter Dim MyDataSet As DataSet Dim …

Member Avatar for Yaw_1
0
337
Member Avatar for Engr_1

How to delete DataGridView Row after Selecting Row from Database Using Delete Button

Member Avatar for yesi_1
0
170
Member Avatar for naz1234

Hi guys, I want to create a window application from VB, so that a user can enter the **OLD Power** value in table. Then **line chart** will be created in that windows application. My **Old Power** data already obtained and recorded in Excel. So, in that window application, 1) The …

Member Avatar for naz1234
0
5K
Member Avatar for CodingSource

I have a label that calculates how many rows the datagridview has and certainly do not want a blank row to be included. It has a blank row at the very top of the datagridview and sometimes in the middle. If it is possible, I want to delete all empty …

Member Avatar for zizo.ahmed.779
0
3K
Member Avatar for dashawk

Hi guys, I want to multiply or add the values of two or more cells in a datagridview control in a row and and should also be auto-saved in the database after entering datas in the cell. I am using SQL Server 2008 for my database. Please do take a …

Member Avatar for Santanu.Das
0
5K
Member Avatar for Lorraine_1

I'm completely new to VB.net and have been given a homework assignment. I need to be able to read certain lines and display them in a DataGridView. I have been able to link my .txt file to the DGV however **it reads the whole file** as opposed to the specific …

Member Avatar for Reverend Jim
0
841
Member Avatar for oren.turgeman.9_1

hy when i run this command to open excel and i get error (on 2007 excel it was fine) //Excel.ApplicationClass xlApp; Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; object misValue = System.Reflection.Missing.Value; SaveFileDialog oDialog = new SaveFileDialog(); xlApp = new Excel.ApplicationClass(); ** xlWorkBook = xlApp.Workbooks.Add(misValue);** xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1); int i = …

Member Avatar for JOSheaIV
0
302
Member Avatar for savedlema

Hallow everyone! I'm developing an application that features a bunch of reports and I have been using DataGridView as a way of displaying my reports, which come from the database (programmatically). When I want to print, I have been using a function that prints the datagridview like you are taking …

Member Avatar for Santanu.Das
0
641
Member Avatar for rahulzephyr

I have datagridview in form1 and i can add rows in it... now on button click i want to show the same datagridview in another form with same rows which i have added already in form1 datagridview...can someone help me with this??

Member Avatar for ddanbe
0
144
Member Avatar for Lethugs

Hi, I have to forms, second for is shown from the first form trough showdialog command. Both forms have datagridview User will select data from DGV in second form then pass all this data to DGV in first form How can I achieve it, I know how to do it …

Member Avatar for Lethugs
0
341
Member Avatar for spowel4

If I have a datagridview that is bound to a dataset which comes from a MSSQL database, how can I have the datagridview display only one row of data from the dataset rather than all of the rows? Specifically, the first column is a combobox which is bound to the …

Member Avatar for ddanbe
0
1K
Member Avatar for jared.geli

I can post a single line of row I selected from datagridview but I want to select specific multiple rows then display it in my crystal report. BTW I'm using VB2010. Dim cmd As New OleDbCommand("Select * From Data1 Where ID = " & Form4.DataGridView1.SelectedRows(0).Cells(0).Value.ToString() & "", Form4.con) Dim adpt …

Member Avatar for waterm
0
2K
Member Avatar for kidkardel

hi, 1st of all thank you guys again for all of your help. ![a3ce81a2808d02214775965e56a6d32b](/attachments/large/4/a3ce81a2808d02214775965e56a6d32b.png "a3ce81a2808d02214775965e56a6d32b") i have this datagrid view and i want to write it on a richtextbox like: 14 APPLE0-13 @ 60.00 840.00 so on and so forth. how can i achieved getting all of them and can …

Member Avatar for kidkardel
0
2K
Member Avatar for Gobble45

Hi fellow members of Daniweb. I've been working on project for the past few days now, and have come across a bump, that i am unable to pass. The project, when finished, will do the following: 1. Select DBF file from computer location (Default C:) 2. Import the database file …

Member Avatar for Mary Grace_1
0
3K
Member Avatar for ddanbe

Well, start a new forms application from VS. In design mode, drop a DataGridView and a Button on the form and fill in the code. The button clickhandler will add an extra totals row to the datagrid. Here it will keep adding and totaling, which is of course meaningless, but …

Member Avatar for ddanbe
0
2K
Member Avatar for dennis254

Hi, I have a DataGridView with a table loaded onto it. I have nine textboxes which will serve as a search feature for the DataGridView. What I want is that once text is entered, it goes through the relevant column filtering data as per what is inputed. This works perfectly …

Member Avatar for dennis254
0
3K
Member Avatar for hhm_pro992

HI! I CREATING A "POS" APPLICATION FOR MY SHOP I WANT TO KNOW THAT HOW TO PRINT OUT DATAGRIDVIEW DATA Like This: - ![036659558a64e3ca98e61bbafd08be33](/attachments/large/3/036659558a64e3ca98e61bbafd08be33.png "036659558a64e3ca98e61bbafd08be33") to this : ![82140f006783ff6fb594ba8cff295dbf](/attachments/large/3/82140f006783ff6fb594ba8cff295dbf.png "82140f006783ff6fb594ba8cff295dbf")

Member Avatar for ddanbe
0
968
Member Avatar for midnite11

Does anyone know how to get the number of rows that are included in the total SelectedCells of a datagridview? This is where the user actually selects multiple cells in multiple rows - not actually selecting the rows themselves. I don't need to row indexes of the cells. What I …

Member Avatar for midnite11
0
1K
Member Avatar for hhm_pro992

Hi! I want to know, how to delete empty or blank row in DataGridView in Vb.net.......... "When i click Button the all empty or blank row in DataGridView will be remove......" LIKE this : " Before Button Clicked " ![cccfb5927324360a697c76844a521720](/attachments/large/3/cccfb5927324360a697c76844a521720.png "cccfb5927324360a697c76844a521720") " After Button Clicked " ![be990ddb7744e1b53a444eeda94e8064](/attachments/large/3/be990ddb7744e1b53a444eeda94e8064.png "be990ddb7744e1b53a444eeda94e8064")

Member Avatar for hhm_pro992
0
10K
Member Avatar for malik10

I have datagridview that is bounded with some data source.... I want that the Datagridview should keep all the rows with their data when i remove its Datasource... I remove its datasource by Mydatagridview.datasource = Nothing.... When i do that... the datagridview clear all rows... Please tell me how to …

Member Avatar for ashley.steenson
0
763
Member Avatar for Satyam_1

I have vb.net application with MDF-Sql database. I retrieves data from Table in MDF-Sql into datagridview by TableAdaptermanager/binding navifator. Although it displays data but when I want to save by this code, its not working.This code is working in vb.net with OleDb application but not here. Is there any another …

Member Avatar for samir_ibrahim
0
709
Member Avatar for Praveen_10

namespace gridStudent { public partial class Form2 : Form { public Form2(DataGridView dgvFromFom1) { foreach (DataGridViewColumn dc in dgvFromFom1.Columns) { dataGridView1.Columns.Add(dc.Name, dc.HeaderText); } foreach (DataGridViewRow dr in dgvFromFom1.Rows) { Object[] newRow = new object[dr.Cells.Count]; for (int i = 0; i < newRow.Length; i++) { newRow[i] = dr.Cells[i].Value; } dataGridView1.Rows.Add(newRow); } …

Member Avatar for ddanbe
0
236
Member Avatar for obuobi

Hello, am on a project and I want the user to search for a word in datagridview. Am using vb.net 8 with access 2010 I want where the text is to be highlighted

Member Avatar for obuobi
0
245
Member Avatar for widygui

Hi Everyone. I got a problem when I want to input data into my second row. whenever i try to insert data,the data always appeared in the row. here's my code... private void btnTambahStock_Click(object sender, EventArgs e) { int i = 0, j = 0, k = 0, l = …

Member Avatar for Daemon_CC
0
199
Member Avatar for wish4129

Dear fellows, i have a problem here, is there anyway to implement the drag and drop function for users to reorder the column sequence? i have tried several ways but it still not working, any hints can enlighten me? bottom is part of my code, thanks in advance. [CODE] DataGridView1.AllowUserToOrderColumns …

Member Avatar for Mukesh_3
0
937
Member Avatar for Yogesh Sharma

hey frnds, Firstly I pick the records from the databse into the DataGridView, Then I want that If we made changes to the records in the GridView & Click on Update Button, Changes are Reflected into the Datbase .Plz do reply back the ..

Member Avatar for Venkatesh_6
0
6K
Member Avatar for Exaktor

How do you delete rows from a datagridview. I have a delete button to the right in the datagridview. I want to know how to delete a single row by clicking the delete button.

Member Avatar for ChrisHunter
0
4K
Member Avatar for zabayin

I have One DatagridView. I need to highlights rows which belongs to "ID" For Example ID 1 1 1 1 2 2 2 3 That's it. I need to highlights ID-1 all rows to Yellow Color Then 2 to Lime Color. And 3 to Yellow Again. Here is my Code …

Member Avatar for zabayin
0
407
Member Avatar for ddanbe

Hi, You can simulate this by starting a new WinForm app. Add a datagridview and add some columns. Add a contextmenustrip, add a menuitem, doubleclick it to get a clickhandler. Attach the menustrip to the datagridview in the properties window of the DGV. Then refer to this code and the …

Member Avatar for ddanbe
2
3K

The End.