Showing posts with label build. Show all posts
Showing posts with label build. Show all posts

Friday, March 30, 2012

RowNumber counts hidden rows?

Hello i have an expression build on RowNumber and i realized it counts hidden
rows (visibility = false)... this seems very odd to me.. is the way it was
designed'let me be more specific... i have a expression to change the row color... but
this isn't working because the report is incrementing RowNumber on hidden
rows... so the coloring seems random to the person reading the report. Is
this normal' Is there a work around?
"thejez" wrote:
> Hello i have an expression build on RowNumber and i realized it counts hidden
> rows (visibility = false)... this seems very odd to me.. is the way it was
> designed'|||check the visibility property before set row color.
"thejez" <thejez@.discussions.microsoft.com> escreveu na mensagem
news:29D9F5ED-DB50-4C48-9BD0-C62F1005EB97@.microsoft.com...
> let me be more specific... i have a expression to change the row color...
> but
> this isn't working because the report is incrementing RowNumber on hidden
> rows... so the coloring seems random to the person reading the report. Is
> this normal' Is there a work around?
> "thejez" wrote:
>> Hello i have an expression build on RowNumber and i realized it counts
>> hidden
>> rows (visibility = false)... this seems very odd to me.. is the way it
>> was
>> designed'sql

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