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

datareader bind to datagridview

hi,how to bind datareader to a datagridview? without using datatable.thanks,Popskie

View Article


Left Join problem

SELECT CUSTOMER.CUSTOMER,NAME, ISNULL(SUM(SUBTOTAL + TAXES - PAID),0.00) AS BALANCE FROM CUSTOMER  LEFT OUTER JOIN ARH ON ARH.CUSTOMER = CUSTOMER.CUSTOMER  WHERE INVTYPE IN('REG') AND [OPEN] = 1GROUP...

View Article


Problem filtering data row in datagridview between two value in textbox

Hi,Thank you for your time. I kindly ask your assist to rectify the problem regarding with my code. Basically, my program is to retrieve the value from CSV file and export to DataGridView.Then i try to...

View Article

C# How to assign certain columns of a datagridview with certain columns of a...

Hi:I have a datagridview that i'm trying to populate with a datatable that was filled with values from sql server.  There are 8 columns in the datagridview with two of the columns having checkboxes....

View Article

I want to show data in access with datagridview

string connection; connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Rahsan.accdb;"; OleDbConnection con = new OleDbConnection(connection); try { //GridView1.Columns.Add("ID", "ID");...

View Article


for a datagridview with binding source,is it possible to modify it by giving...

hi   i'd like to ask a question.   i have a datagridview with datasource binding source.    my aim is to first make a backup copy of the whole content of datagridview ,then if the user click a...

View Article

how to realize function of undo in datagridview?

hi   i have a  datagridview, i'd like to ask,is there some function that if user click the button then he can be back to the last modification?(for example, delete a row or modify the cell value)   i...

View Article

is it possible to give value of one datagridview to another and update...

hi  i'd like to ask u a question   basically i am doing function of undo.  so first ido like this  DataGridView tmp;  tmp=this.DataGridView;  then if i modified sth in datagridview i found the tmp is...

View Article


DataGridView Binding Refresh question

Hello Everyone,I have on my Form a datagridview control that i bound to my DataTable in DataSet using BindingSource...So datagridview.DataSource is my BindingSource BindingSource.DataSource is my...

View Article


how to make my textbox not show any text when user has selected same user_id...

Hi my name vishal for past 3 days i have been breaking my head on how to make my textbox in my form not show any text when user has selected same user_id from combobox and selected same task from...

View Article

DataSet.DataTable INotifyPropertyChanged

Hello,I am using simple scenario where DataGridView is bound to typed dataset datatable.For Binding I am using BindingSource (bs)So...bs.DataSource = DataSet1bs.DataMember =...

View Article

Problem with dataGridView1_CellEnter

Hello After using DataGridViewRichTextBox.DataGridViewRichTextBoxColumn x1 = new DataGridViewRichTextBox.DataGridViewRichTextBoxColumn(); dataGridView1.Columns.Insert(0, x1);dataGridView1_CellEnter has...

View Article

Image may be NSFW.
Clik here to view.

richTextBox.SelectionBackColor in a datagridview with...

HelloIn this code:dataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Linen;for (int i = 0; i < dt.Rows.Count; i++) { richTextBox1.SelectAll(); richTextBox1.SelectionColor = Color.Black;...

View Article


question about RejectChanges,i know it is ok for a dataset and a row ,but is...

hi   i have a mysql dataset and i triedDataSet.table.Rows[0].RejectChanges();andDataSet.table.RejectChanges(); but if i want only one cell (row,column),is it possible to make RejectChanges? thank u...

View Article

i have a datagridview bounded to dataset,how to find the row in dataset...

hhi   i'd like to ask a questiion.  i have a datagridview bounded to dataset,how to find the row in dataset according to rowindex in datagridview before "Load"(update to data base)    i used to think...

View Article


Insert checked rows records of datagridview into sql data table using c#

THere are two tables in my database. I've created a form using datagridview and inserted a new check box column to select the rows. All i need to do is to insert selected rows into a new row in other...

View Article

DataGridView Column Header Cell Style not working

The backcolor for row header and column header does not work.e.g.Grid.Column(0).HeaderCell.Style.BackColor=Color.Blue Grid.Rows(0).HeaderCell.Style.BackColor=Color.Blue...

View Article


DataGridView WinForms add ability to highlight selected text as in browser c#

Hi to all. I have a question - is it really to highlight text and copy it from DataGridView as in browser. For now I have a DataGridView with information that I can't edit, and I want select and copy...

View Article

how to sort a gdatagridview by 2 columns

hi ,my code is like that                                                                                dataGridView1.Sort(nameDataGridViewTextBoxColumn, ListSortDirection.Ascending);...

View Article

Update changes in Datatable to SQL Database

In my Windows form project I pass a DataTable from DAL to BLL. Then do some updates to values and send it back to DAL. How to update those modified data to SQL Databse? Do I have to search for modified...

View Article
Browsing all 2535 articles
Browse latest View live


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