News
IBM to offer mobile security as a service IBM will start delivering mobile security-as-a-service (MaaS) through its own cloud infrastructure in India, a move that is expected to better address in-country data requirements... IBM Spectrum Computing: IBM has enlarged its portfolio of software-defined infrastructure solutions with cognitive features for workload management.  * LiFi internet technology has been introduced, the new type of wireless internet connection that gives 100 times faster than traditional WiFi -- Invented by Professor Harald Haas from the University of Edinburgh. * Sci. Rachid Yazami has developed a smart chip that charges smartphones in less than 10 minutes. BenQ has launched BlueCore projector - Consumer electronics major BenQ has launched its first BlueCore laser light source projector. For those unaware, devices with BlueCore laser technology have a high contrast output of 80000:1 with an extended lamp life and efficiency. ***
Category - GridView
 
Jun 18 2016 11:38PM    Posted By: Michael   Tagged As: C# Tutorial, ASP.Net, GridView
Here Michael provided a short description with example for binding gridview from CSV file.
                //getting full file path of Uploaded file  
                string CSVFilePath = Server.MapPath(FileUpload1.PostedFile.FileName);

                //Reading All text  
                string ReadCSV = File.ReadAllText(CSVFilePath);
[Read More]

Feb 25 2016 10:59AM    Posted By: Micheal Ryan   Tagged As: GridView, HTML, CSS
Here Micheal provided a simple example for gridview custom css
       .grdContent
        {
            width: 80%;
            border: solid 2px black;
            min-width: 80%;
        }
[Read More]

May 30 2015 9:54PM    Posted By: Micheal   Tagged As: LINQ, C# Tutorial, Gridview, ASP.Net
Here Micheal provided a short tutorial with example, Binding gridview with LINQ in ASP.Net C#.
    private void BindGridView()
    {
            using (DataContext objDataContext = new DataContext())
            {
                var result = from c in objDataContext.Employees
                             where c.EmployeeAge >= 20
                             select c;                
[Read More]

Mar 1 2015 9:10AM    Posted By: Michael Ryan   Tagged As: Windows Forms, GridView
To perform Insert, Update and Delete in DataGridView control in Windows Forms Application using C#.
private void Form_Insert_Load(object sender, EventArgs e)
{            
         if (!string.IsNullOrEmpty(Form_Grid.empid))
         {
con.Open();
 ...
[Read More]

Jan 25 2015 9:41AM    Posted By: Michael Ryan   Tagged As: ASP.Net, GridView
Here Michael Ryan provided a short tutorial with example, how to delete row from gridview using checkbos on button click in ASP.Net
protected void btnDelete_Click(object sender, EventArgs e)
        {
            foreach (GridViewRow gvrow in GridEmployee.Rows)
            {
                //Finiding checkbox control in gridview for particular row
                CheckBox chkdelete = (CheckBox)gvrow.FindControl("chkSelect");
                //Condition to check checkbox selected or not
                if (chkdelete.Checked)
                ...
[Read More]

Jan 25 2015 9:41AM    Posted By: Michael Ryan   Tagged As: ASP.Net, GridView
Here Michael Ryan provided a short tutorial with example, how to bind Gridview with AutoGenerate Serial Number column
protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridEmployee.DataSource = GetData("SELECT EmployeeName, EmployeeAge, EmployeeDesc, 
                EmployeeExperience FROM Employee"
);
                GridEmployee.DataBind();
                ...
[Read More]

Jan 25 2015 9:41AM    Posted By: Michael Ryan   Tagged As: ASP.Net, GridView
Here Michael Ryan provided a short tutorial with example, how to bind Gridview with DropDownList in ASP.Net using Dataset in C#/VB
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                //Find the DropDownList in the Row
                DropDownList ddlCountries = (e.Row.FindControl("ddlEmployeeDesc"as DropDownList);
                ...
[Read More]

Jan 25 2015 9:40AM    Posted By: Michael Ryan   Tagged As: ASP.Net, GridView, CSV
Here Michael Ryan provided a short tutorial with example, how to Export Gridview records to CSV in ASP.Net C#/VB
private void ExportGridToCSV()
        {            
            Response.Clear();
            Response.Buffer = true;
            Response.AddHeader("content-disposition""attachment;filename=Employee.csv");
            Response.Charset = "";
                ...
[Read More]

Prev 12 Next
Search
1&1 Hosting
Recent Posts
Bind Gridview from CSV file in Asp.Net C#
Jun 18 2016 11:38PM Posted By Michael
Call WebService method from jQuery in every 1 minute
Feb 27 2016 11:51AM Posted By John
Gridview custom CSS in ASP.Net
Feb 25 2016 10:59AM Posted By Micheal Ryan
Read excel file and bind to Gridview in C#
Feb 25 2016 10:20AM Posted By Micheal
Read excel file and convert to List in C#
Feb 25 2016 6:26AM Posted By Michael
Encryption and Decryption for Password in C#
Feb 17 2016 3:52AM Posted By Michael
How to create Chart in ASP.Net C#
Feb 16 2016 8:03AM Posted By Michael Ryan
Tags
Follow us on Facebook
Follow us on Google +
Recent post in your Email inbox.
Enter your email address: