How to use both DataSource and DataSourceID in gridview

Posted by jame on Stack Overflow See other posts from Stack Overflow or by jame
Published on 2009-09-29T10:10:56Z Indexed on 2010/03/31 21:03 UTC
Read the original article Hit count: 431

work on C# asp.net vs05.i need to save some value and show them on the gridview.So under the button event i write a code that save value ,and show on gridview.I can save value but problem occur when show on gridview.So i use the DataSource .I also set the GridviewTask-->Choose Data Source--> DataSourceID ,because user need to edit information set on the page. after use the DataSourceID show this error message : Both DataSource and DataSourceID are defined on 'GridView2'. Remove one definition.

How can i use the both in one grid view?if i can not? then how to give user this facility that they can edit information set on the grid with out use any other contorl.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview