Click here to Skip to main content
15,936,169 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class GridViewCellsEdit : System.Web.UI.Page
{
    private const int _firstEditCellIndex = 2;

    #region Page Load
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            _sampleData = null;
            this.GridView1.DataSource = _sampleData;
            this.GridView1.DataBind();
        }
Posted
Updated 26-Nov-11 23:16pm
v3
Comments
[no name] 27-Nov-11 3:37am    
Edit: added <pre> tag
[no name] 27-Nov-11 3:38am    
So what's wrong with your code?

That is just a code dump without a question - we have no idea what it is supposed to do, so we have no way of telling what it is doing wrong.

We only need relevant code fragments, not the whole code. But we do need some idea of what the actual problem you are having is.

Use the "Improve question" widget to edit your question and provide better information.
 
Share this answer
 
From your code you have missed the definition of _sampleData. what type is _sampleData?
 
Share this answer
 
Still no update?

Please give us the error you are receiving so we could help you with your problem.
 
Share this answer
 
Comments
2011999 27-Nov-11 5:16am    
my proble is solved
[no name] 27-Nov-11 6:19am    
oks. please mark it as solved. thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900