Tutorials

How to Bind Data to the Windows Forms DataGridView Control

Submitted by admin on
[inline:DataGridView Control.jpg=How to Bind Data to the Windows Forms Datagridview Control] The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor. (Source: MSDN)

Datasource control with MySQL Datasource control with MySQL

Submitted by planetsourcecode on
We can use the Datasource control with MySQL, for this we have to require two things. This can be done without writing any codes,simpy we have to assign the ConnectionsString in the SQLDataSource control. the string will be like that DS1.ConnectionString="Driver={MySQL ODBC 3.51 Driver};server=YourServerIP;database=" & _ "YourDB;user=YourUID;pwd=YourPWD;option=3;"

Search an object in Dababase

Submitted by planetsourcecode on
Always forgot to remember one query. So for them only Below query you can any table, stored procedure or views who ever have that expression as a column or object name. SELECT * FROM SYSOBJECTS WHERE ID IN (SELECT ID FROM SYSCOMMENTS WHERE TEXT LIKE ‘%PRODUC%’) The query produced all the object names. where ever it finds expression like ‘PRODUC‘

Barcode development in dot net

Submitted by planetsourcecode on
Recently we were working on Barcode application and want details of the Barcode mechanism like how the barcode works, what are the different types of barcode, which one is better for which condition and other important questions by googling we got the following website which are providing efficient information to deal with these type of issues

5 Tips & Tricks in ASP.NET

Submitted by planetsourcecode on
Trick #1 Delete a selected row from a DataGrid using c# Double click the dataGrid and write the code private void DataGridvie_selected(Object sender,EventArgs e) { DataSet da=new DataSet(); int i=datagrid1.selectedIndex; int empidval=ds.Tables["emp"].Rows[i][0].ToString(); SqlConnection conn=new Sqlconnection("conn string"); conn.Open();

Printing in ASP.NET

Submitted by planetsourcecode on
In windows desktop application it is easy to print a form data for report or other purpose but in asp.net web form it is not easy to print a page. The printing on client side needs solutions for different conditions using JavaScript The simplest way to print a web form is to use client side JavaScript. To print a web page, you can use code like this: