Wednesday, March 28, 2012

Rowediting does not work?

Hi there,

I am not sure if I am right within this forum but it's worth a try:

I try to build a GridView and receive the data from SQL Server 2005 - if I implement the source within the .aspx-file it works fine to make the rows able to be edited (

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ACUConnectionString %>"
SelectCommand="SELECT * FROM [Access_level]">
</asp:SqlDataSource>

But if I try to implement the datasource within the pageload nothing happens on a edit-click.

Therefore I implemented an event onRowEditing but now I do not know how I make the fields editable?

Hopefully you know a solution (and much more hopefully this forum is a good one to answer things like that....

Regards,
Jochen

Okay, as often the answer was simple (maybe my question was paraphrased too complicated ):

just set the DataSourceID on "" (GridView.DataSourceID = ""). That helped ;-)

Regards,
Jochen

No comments:

Post a Comment