Click here to Skip to main content
15,867,568 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Open a grid view in edit mode? Pin
Rocky#29-Mar-08 1:24
Rocky#29-Mar-08 1:24 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:28
docsoft29-Mar-08 7:28 
GeneralRe: Open a grid view in edit mode? Pin
Rocky#30-Mar-08 20:43
Rocky#30-Mar-08 20:43 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 2:11
farazsk1129-Mar-08 2:11 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:18
docsoft29-Mar-08 7:18 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 8:04
farazsk1129-Mar-08 8:04 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 8:40
docsoft29-Mar-08 8:40 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 9:54
farazsk1129-Mar-08 9:54 
Hi,

As you have already defined DataSourceID and DataSource try your code like this

GridView1.EditIndex = 0;
GridView1.DataBind();

The error is generated probably because when you have already assinged DataSource and DataSourceID in designer and try to assign DataSource again in code it gives error.

Faraz Shah Khan
MCP, MCAD.Net
Blog

Generalhelp Pin
V.Sen...28-Mar-08 23:43
V.Sen...28-Mar-08 23:43 
GeneralRe: help Pin
farazsk1129-Mar-08 2:48
farazsk1129-Mar-08 2:48 
Questionsession timeout Pin
Soumini Ramakrishnan28-Mar-08 19:58
Soumini Ramakrishnan28-Mar-08 19:58 
GeneralRe: session timeout Pin
N a v a n e e t h28-Mar-08 20:33
N a v a n e e t h28-Mar-08 20:33 
GeneralRe: session timeout Pin
farazsk1129-Mar-08 2:23
farazsk1129-Mar-08 2:23 
GeneralSlow FTP transfer on Production server Pin
Gus'O.28-Mar-08 10:28
Gus'O.28-Mar-08 10:28 
Generalerror on insert a new row in a custom gridview Pin
zio_pino28-Mar-08 8:40
zio_pino28-Mar-08 8:40 
GeneralRe: error on insert a new row in a custom gridview Pin
led mike28-Mar-08 9:07
led mike28-Mar-08 9:07 
GeneralRe: error on insert a new row in a custom gridview Pin
zio_pino31-Mar-08 5:32
zio_pino31-Mar-08 5:32 
QuestionDropDownList Creation Pin
kontax28-Mar-08 8:08
kontax28-Mar-08 8:08 
GeneralRe: DropDownList Creation Pin
Mark J. Miller28-Mar-08 9:25
Mark J. Miller28-Mar-08 9:25 
GeneralRe: DropDownList Creation Pin
kontax28-Mar-08 10:04
kontax28-Mar-08 10:04 
GeneralRe: DropDownList Creation Pin
Mark J. Miller31-Mar-08 6:26
Mark J. Miller31-Mar-08 6:26 
QuestionHow to read Texbox value in a grid Pin
lav naphade28-Mar-08 8:05
lav naphade28-Mar-08 8:05 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller28-Mar-08 9:39
Mark J. Miller28-Mar-08 9:39 
GeneralRe: How to read Texbox value in a grid Pin
lav naphade29-Mar-08 6:01
lav naphade29-Mar-08 6:01 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller31-Mar-08 6:13
Mark J. Miller31-Mar-08 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.