32 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jared.geli

Good day guys I need help for adding rows in datagrid where the rows to be added are equal to the number of rows copied from excel. I can copy the data but it displays only the first row from excel on the last row of datagrid but if I …

Member Avatar for richardsonka
0
2K
Member Avatar for JustineAubrey

Hi, I'm trying to create cascading comboboxes, and my code isn't working. I've looked at other threads and I don't know why it isn't working properly. The first combo box displays System Names and the second combobox should populate the all Locations of that specific system chosen. When I run …

Member Avatar for Zahraa_1
0
321
Member Avatar for slavica.k

is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = …

Member Avatar for slavica.k
0
589
Member Avatar for rihab_1

hi, I want to spent the values of textbox to datagridview from another form and that after a click on the button add, help me please

Member Avatar for Reverend Jim
0
3K
Member Avatar for rody9

Hello,I am Vanen,from Mauritius Island,new to c# and vs. I am getting difficulties while saving values from my datagrid to database. If possible,option for selecting all the rows and option for selecting which rows to save to database from the datagrid. Can someone guide me?please! Thanks in advance.

Member Avatar for rody9
0
213
Member Avatar for riayas

I have 2 forms , form one has a datagrid with 10 columns form 2 has a listview box with 4 columns i want to populate the listview columns with 4 of the values from a row in the datagrid when the row is selected and the 'add ' button …

Member Avatar for riayas
0
705
Member Avatar for Eternal Newbie

How could I change the column header of the Data Grid to center or right but not left as default? [Pls pay attention, We are talking 'bout Data Grid here, recently I always receive answers for Data Grid View instead :( ] I just want to re-align the header only, …

Member Avatar for kRod
0
2K
Member Avatar for weeraa

Im developing application using ASP.net + VB.net Now i want to change column width at run time. But in run time it doesn't work. This is what i did up to now. data bind in form load like this. myGrid.datasource = myDataSet.table(0) myGrid.databind() In here dataset come properly. in grid …

Member Avatar for weeraa
0
525
Member Avatar for mlesniak

Hi all. Using VB6: I have an application in which I am programmatically populating a datagrid. When I first drop the datagrid on my form, it has 2 columns by default. I can add further columns to them but I wanted to know if there was a tidy way of …

Member Avatar for imBaCodes
0
245
Member Avatar for vonnoy

hi, im new in vb6 how to search in datagrid where every keyword you type wil display the record found in database? here's my code in saving pls ned help here....this is our thesis God Bless>thanks. Sub search() 'search if student is registered then With ado .ConnectionString = connectdb .RecordSource …

Member Avatar for deepakbshitole
0
5K
Member Avatar for tedy.jd

I was doing xaml with vb coding in vb 2010 I create a datagrid and linked itemssource with table adapter, and also I modify a columns to checkbox datagrid columns. Problem now is I checked the checkbox value in the columns in datagrid but through button check the data grid …

Member Avatar for tedy.jd
0
294
Member Avatar for guru_iyer

I've a DataGrid Control in my application and a button. When i click a button it should display the contents of the Logins table in the DataGrid. For this I've coded the following, but its giving me an error "Rowset is not bookmarkable.". I've searched a lot, many suggestions include …

Member Avatar for AndreRet
0
1K
Member Avatar for bprosic

Here is a picture of a form. http://postimage.org/image/a813nony5/ Please help: I have a form with: - 4 textboxes (textbox 11,21,311 & 41) - 4 buttons (add, delete, save, refresh) - 1 DataGridView (MS Access database connected) - 1 filter to filter the data through DatagridView Here is the story: When …

Member Avatar for bprosic
0
2K
Member Avatar for Pamilerin

In sql server , my query brings out more than one row of data SELECT * FROM TABLE 1 WHERE COLUMN LIKE 'PARAMETER' Now i am trying to make it in a dtagrid that the datagrid shows allpossible rows that is supposed to show .This is the code Dim objCommand …

Member Avatar for Pamilerin
0
822
Member Avatar for Pamilerin

I have a problem trying to link my my datagrid view to my sql server stored procedure. The way it should work is that when I select an item in a list from my combo box it returns a set of rows on the datagrid view specific only to that …

Member Avatar for Pamilerin
0
1K
Member Avatar for Pamilerin

can any body help me by giving me a guideline on how to insert data from a populated datagrid into sql server table and how to make the values conform to the specified datatypes constructe in the sql server side...assuming the datagrid headings have already been created in the sql …

Member Avatar for Begginnerdev
0
846
Member Avatar for G_Waddell

Hi All, I know this may seam odd but I'm getting an error navigating through a datagrid of an invalid cast. The trouble is it is of the same types!! I working on customising some Sage code and in the form there is a datagrid that is populated by a …

Member Avatar for G_Waddell
0
250
Member Avatar for JustineAubrey

Hi, I am creating a form application that should display information from one dataset into individual textboxes (ie. system name, system id, location name, location id). The textboxes populate upon the selection of a pair of cascading combo boxes. So, the user first selects a system name from the first …

Member Avatar for JustineAubrey
0
249
Member Avatar for Eternal Newbie

I have a DataGrid table like this: [img]http://ni8.upanh.com/b1.s24.d1/f869170161faa9e6ad2c272d6f66228e_40513398.capture.png[/img] How could I change the plain-looking arrows in the RowHeader into row number (Like 1,2,3...)??? Thanks for any help from you guys!

Member Avatar for Eternal Newbie
0
216
Member Avatar for mani-hellboy

Hi friends., Actually I use datagrid to show my result from XML file.I load my data from XML file easily.But i need Sorting method for that and i don`t know how to solve it Please give me solution for that My code is [CODE] Imports System.Data Imports System.Xml Imports System.IO.StringReader …

Member Avatar for mani-hellboy
-1
122
Member Avatar for Lopoc

Hello This is my first post so I’m sorry if I ramble and don’t explain my issue clearly. I am binding a dataset (dsTest) with a table called “TempResult” to a datagrid (DatagridView1). The purpose of the datagrid is to display test labels (set elsewhere in the software) and to …

Member Avatar for Lopoc
0
152
Member Avatar for mfas

Hi all, I have been messing around with datagrid styling for a couple of days now, and I am having one issue left which I can not seem to solve. I want to highligt the text of the row on which I hover with the mouse. Well this seems like …

Member Avatar for mfas
0
2K
Member Avatar for vammy

Hi Guys, Im trying to update a datagrid and a text box value in access database. both shld be saved in the same row simultaneously.,unfortunately its not happening. they were gettign saved in a different rows. PLEASE help. [CODE] conn.Open() sqlQRY = "Insert Into tblPlot(SurveyNo)" sqlQRY = sqlQRY & "Values" …

Member Avatar for anusha.shivni
0
116
Member Avatar for deefpi

Hello. I have a datagrid with 9 columns. I want to add a one row from data table who is that same. I believs I can do it that: [CODE]DataGridViewRow drow = new DataGridViewRow(); foreach (DataRow wiersz in dTable2.Rows) { for (int i = 0; i <= ilosckolumn - 1; …

Member Avatar for deefpi
0
439
Member Avatar for Alexkid

Hi There, I have a datagrid table with 5 columns and as many rows as the user enters. Is there a simple way to export the contents of the table to a CSV file? The columns are named; a,b,c,d and e Im using VB 2005. Mant Thanks Alex

Member Avatar for Surendrasinh
0
964
Member Avatar for StevenSchaffner

I am working on something for school as a final project before graduation. I am using ASP for the website and VB as the back end to code. I keep getting the error "Object reference not set to an instance of an object" and can't figure out what is wrong. …

Member Avatar for StevenSchaffner
0
227
Member Avatar for Misheki

I have a working code that exports the datagrid into XLS. However, the datagrid results does not show on my aspx (html) page. It only shows on the page when I comment out the part that exports it to xls. I am not sure whether it should show by default …

Member Avatar for Misheki
0
176
Member Avatar for khean

I found this forum very useful to me as a beginner in VB.net and found similar thread regarding my concern unfortunately it doesn't for me may be could someone show me the solution. [URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/340634/1446506#post1446506"]http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/340634/1446506#post1446506[/URL] i will provide screen shot on error I'm encountering. [IMG]http://i54.tinypic.com/15o9mvc.jpg[/IMG] Help much appreciated and thank you …

Member Avatar for khean
0
2K
Member Avatar for TechNewbie23

Hey! I am creating an application which will allow users to search parents names and display their childen respectively in a datagrid. I have created a form with two text boxes, a search button and a datagrid. The two text boxes are txtFName.text and txtLName.Text. On clicking btnSearch I want …

Member Avatar for TechNewbie23
0
217
Member Avatar for digitalsindhx

Friends I m workin on vb.net ado.net oledb, I have also added datagrid Control to my form for retriving database from .Mdb file i used following code [code] 'decleared Name Space Imports System.Data.OleDb 'Dicleared Variabls in Class Form1 Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da …

Member Avatar for digitalsindhx
0
600

The End.