Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Browsing all 2535 articles
Browse latest View live

C# DataGridView Open New Form on row click

Hi Guys,I have an application which has a DataGridView with some data in it. How can I set it up so that when a user click on a row in the DataGridView it Opens a new Form and passes the ID from column...

View Article


Search Record

I want to find a record from a table. But after finding the reord I cannot set the focus on the record found.I inserted a datagridview and textboxes from the datasources tab. All I want is to focus the...

View Article


DataGridView GetCellDisplayRectangle One Row Off

I have a derived DataGridView with an override method for OnCellEnter.  In that method, I execute this statement: this.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true);What's coming back is the...

View Article

Signtool verification command for windows 10

We are developing windows applications and right now giving support to windows 7. However, we need to verify our support for windows 10. We have windows 10 developer's preview installed with us. For 7,...

View Article

Binding Data to CheckBox Using Properties Dialog

Is it possible to Bind a CheckBox to the Datasource using the properties dialog? The bindingsource is a sql table with a Violation field that contains values of 0 or 1 (1 = Violation) I have tried...

View Article


DataGridView : ScrollBars not showing

Hi all.  I have a WinForms application. It is c#, .NET 2.0. On a form, I have 3 DataGridView controls. They all have their ScrollBars property set to Both. The scroll bars for the first two grids work...

View Article

How Can I Add Printing Capability To Gridviews In Seperate Tabs ?

Hi I have a form with tabs on it there are gridviews on each tab. I want to take the printout of all the data s in different tabs. I have already tried the print document option so that i can take only...

View Article

Dynamic Table Adapters?

So, I've been all over the forums and various sites, including looking at several tutorial videos, and I can't seem to find what I'm looking for in a simple easy-to-understand format.Basically, I have...

View Article


[DataGridView] How to get a cell value without unsharing a row?

I'm writing handler for CellFormatting event. In the handler, I'd like to set the cell's style depending on the value of another cell in the same row. How can I access that another cell's value without...

View Article


I Need To Filter Data in DataGridView1 c#, but i did'nt using bindingsource,...

// filtering data gridview windows forms

View Article

Refresh one row in a datatable from sql using ado.net

After I edit, delete, or add a new row in sql I would like just that row to update in the datatable on the form. for example if I have a datatable with all the products and it's loaded in a...

View Article

SQL PDF to Adobe Control from GridView

Hi AllI have to be able to load a PDF (stored in SQL as image) via a Stored Procedure. The stored procedure selects the ID, PDF Field and PDF Name. I  can view this in a gridview filtered by the ID....

View Article

Binding datagridviewcomboboxcolumn to datagridviewtextboxcolumn

I would like to do the following in the best possible efficient way:Imagine I have 2 datagridviews, let's say, dgv1 and dgv2.dgv1 has some columns, and one of the columns is of type:...

View Article


vb.net Data GridView Update

DataGridViewI load data from database in DataGridView use Select * from Parts1 Where InvoiceNo=400134 It works Correct.Now I want to use Datagridview Update Command. I use Microsoft Access Database....

View Article

Visual Basic Database not saving new data

Hi,  I have  a data source inside Visual Studio.Ive dragged over all the relevent data source fields that i require and all of the data tools have come over with them.Within the application i can...

View Article


CancelEdit() passes control which isn't desired. What else can I do?

I'm trying to add some bulletproofing in a DataGridView edit. Columns 0,1,2,3,& 4 must have values to comply with datatable primary keys as well as SQL table constraints.  If any of the columns are...

View Article

How would you recommend updating (reloading) a bindingsource list and...

Hi.  Retired, non-professional hobby enthusiast with severely limited coding skills.I have a Windows Form which displays two datagridviews, each linking by datasource/bindingsource to separate tables...

View Article


Cannot use backup file 'c:program files...library.bak' because it was...

Hi, retired hobby-user with limited experience needing some assistance.I tried sqlserver 2014 express and decided to purchase the dev product. I order it, download it and install it. I then bring up...

View Article

How to add a combobox to a datagridview column

I have a datagridview that is readonly. When the user clicks a button "edit on grid" then the datagridview becomes editable, and when it becomes editable I need one column to be a combobox so the user...

View Article

c# add selected row from datagridview1 to datagridvierw2

I have two datagridviews in one from. I need to get data from database to datagridview1 (using Select *from database...) then I want to add data from datagriwview1 to datagridview2 using Selected Rows....

View Article
Browsing all 2535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>