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

Image may be NSFW.
Clik here to view.

GridView : Need to achieve similar requirement of data validation present in...

In Windows Forms Application, we have Resources.resx file.Scenario 1)When I do not enter any value in Name column then I get an error called "The resource name cannot be empty."Scenario 2)When I do...

View Article


WebkitBrowser doesn't support special character #

hi..I need to navigate a site using webkit control..but in the url it stop reading in #..but the url have some words after # symbol..please help me..why it doesn't support #.how to make it support. 

View Article


How to check the datatable empty..

Hi..i am storing sql result in data table... and i am assigning the result in the labels..if the table column is null it shows error...how to check the datatable column is null or not...

View Article

File Types Suported with PictureBox Controll and AXWindowsMediaPlayer Controll

I got two questions for Visual Basic 2010 Express editionQuestion 1:I was wondering what type of files are supported with the PictureBox Control?Question 2:I was wondering what types of files are...

View Article

Change property of a Control on a Form

I have a data table with single column "ControlName" containing a list of different types of controls on a from. I used the following code to find the Control on the form.DataTable dt = new...

View Article


Visual Basic 2010 Express Database Data-Updation Error

Buddy,I have created a project where i am using Sql Server for the back-end. Using Sql Server Managament Studio I created a database and then some tables, and connected the database to my project, this...

View Article

How to use combobox as record selector within a bindingnavigator?

Hi all,I'm making a windows forms .net 4 vs2010 app. I've got a bindingnavigator in place for header/lines record navigation.I noticed that the designer allows you to add controls to the...

View Article

Items not appearing in unbound columns of DataGridView until second showing

HiI have a tabbed form that acts as a wizard. On one form there is a DataGridView.  The first three columns are bound to a dataset which represents the various sessions in a timetable for a college...

View Article


How to check if dataGridView checkBox is checked?

Hello, I'm having trouble with my coursework. I need to check, if the checkbox is checked in the dataGridView and then execute a certain code. The problem is, I don't know how to describe inside IF(?)...

View Article


How to display different type of images in datagridview multiple existing...

Hello, I am using this code for display an image in the data grid view, but my problem is not solved.please help me.:- private void CreateColumns()        {                        for (int i = 0; i...

View Article

Gridview image column set all images to same size

Hi I have a datagridview with image column. I m loading images from database which are of different sizes,but I want them to look the same size when being displayed. I tried putting image layout as...

View Article

checking a date against another date (winforms, c#)

Hello.  Have 3 textboxes on a form that show startdate, completiondate, duedate.  All 3 have a corresponding datetimepicker for the user to select date from.  Selecting duedate and startdate are fine...

View Article

Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Byte[]'.

Hello, I am using this code for image display in picturebox from datagridview cell click event but it's getting error:-Rows cannot be programmatically added to the DataGridView's rows collection when...

View Article


DataGridView with Expand/Collapsible Header Column

is there any way to design DataGridView with Expand/Collapsible Header Column ? output look like               + 2010                     +2011             ------------------    ----------------------...

View Article

Prevent Last row in DatagridView from Sorting

Hi,i have a datagridview which is populated with a DataTable & i am inserting a row  to show sum of 1 column values inside it (in DataTable) and then providing it as Datasource to the...

View Article


Rows cannot be programmatically added to the DataGridView's rows collection...

Hello, I am using this code for display items in datagridview using datatable. but it's showing error:-Rows cannot be programmatically added to the DataGridView's rows collection when the control is...

View Article

Custom ComboBox in datagridview

Hi. Using datagridview control to list and collect information to/from user, i was trying to create a custom datagridview column like datagridviewtextboxcolumn which turn to a combobox when enters in...

View Article


How to create an Items property

HiI'm creating a custom datagridviewcolumn and need to create a property Items, just like the Items property of the DataGridViewComboBoxColumn.I tried the following declarationPrivate It As...

View Article

Only view rows in datagrid that meet a certain condition

One of the columns in my datagrid (dataGridView1) is called DatePaid and on button click i.e:private void viewOverdue_Click(object sender, EventArgs e) { // details here } I want it to show all rows...

View Article

Displaying rows in first column (index 0) where cells match a particular date

How would I hide all rows on my dataGridView that do not match the date of "27/10/2013" by comparing it with whatever is in the DatePaid column. I have checked my mdb database (which I'm pulling the...

View Article
Browsing all 2535 articles
Browse latest View live


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