asked on
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
using System;
using System.Collections.Generic
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Project1
{
public partial class Form3 : Form
{
DataSet FSet;
public Form3()
{
InitializeComponent();
FSet = new DataSet();
FillTable();
dataGridView1.DataSource =
FSet.Tables[0];
textBox1.DataBindings.Add(
}
void FillTable()
{
System.Data.SqlClient.SqlC
try
{
FConnection =
new SqlConnection(
@"DATA SOURCE= TERMINAL-01\IRIS;UID= sa;PWD= kl16252;DATABASE= RANDD;");
SqlCommand FCommand =
new SqlCommand(" select * from bangalore ",FConnection);
SqlDataAdapter FAdapter = new SqlDataAdapter
(FCommand);
FAdapter.Fill(FSet);
}
catch (Exception)
{
}
}
}
}