RE: DataGrid Refresh Problem .NET Framework 1.1 SP1

From: akula (akula_at_discussions.microsoft.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 10:39:07 -0700

Hi KeithH,

Thanks for the update. I will try your code later.

Question to you. Are you fimiliar with Advapi32.dll? I have a problem with
it. I have used a code from knowledge base article kb295004 to set
permissions on the folder and everything worked fine til yesterday when I got
back to my old project. All of the sudden I have realized that api function
calls do not work properly anymore. For example, I added user to folder
security and granted him certain rights. Later I denied those rights and on
the third call I granted him rights again. However, this 3rd call is failing,
meaning that code is executed fine without errors but grant access is not set
back. So, I looked closely to folder's security tab => advanced option and
saw two ACEs for the same user. One is allowing access to folder, the other
is denying it. And Deny option always take precedence. So I am not sure now
how this happens because 3-4 months ago this code work nicely. Maybe it has
something to do with Microsoft security patches.

Cheers
akula.

"KeithH" wrote:

> Update:
> Received this from Microsoft.
>
> This definitely looks like a bug. Here is a workaround that I found; in the
> button click handler, you have to set the focus to the data grid before
> changing the filter on the dataset table. You can then set the focus back to
> the button. See the "added by Me" lines below.
>
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> If IsFiltered Then
> ds.Tables("Table1").DefaultView.RowFilter = ""
> IsFiltered = False
> Else
> Me.DataGrid1.Focus() ' added by Me
> ds.Tables("Table1").DefaultView.RowFilter = "Column1='Text 1'"
> IsFiltered = True
> Me.Button1.Focus() ' added by Me
> End If
> End Sub
>
> I've replied to his email asking if there is an easier way to apply this
> change (going thru every application, changing, recompiling, and re deploying
> isn't my cup of tea)
>
>
> "KeithH" wrote:
>
> > My company has a MSDN subscription
> > http://www.msdn.microsoft.com/subscriptions/buy/choose/default.aspx
> > which intitles me to 48 hrs response time to newsgroups by the MSDN
> > microsoft staff.
> >
> > What Peter was explaining is if you have a MSDN subscription, you can get
> > this support as well. How they tell if you have a subscription is by the
> > email address that you use to post messages to the newsgroup. The link he
> > gave you , if you have a MSDN subscription, is to set up that email address.
> >
> > Hope this helps.
> >
> > BTW update to the problem. I have a support call into Microsoft. Started it
> > yesterday, and gave him the above example. Haven't heard from him yet, but I
> > try and keep you posted.
> >
> >
> >
> > "akula" wrote:
> >
> > > Hi Peter,
> > >
> > > Is this registration the same as .Net Password registration because that is
> > > how I was able to create my initial question and reply on your email.
> > >
> > > Best regards,
> > > Akula
> > >
> > > ""Peter Huang"" wrote:
> > >
> > > > Hi Akula,
> > > >
> > > > If you are a managed MSDN user, you may have used a spamed email which is
> > > > not in our database, so that we will miss the 48 hours reponse goal.
> > > > You may try to take a look at the link below to do a register.
> > > > http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> > > > &SD=msdn
> > > >
> > > > Best regards,
> > > >
> > > > Peter Huang
> > > > Microsoft Online Partner Support
> > > >
> > > > Get Secure! - www.microsoft.com/security
> > > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > > >
> > > >