472,101 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,101 software developers and data experts.

GridView button column click

Hi
How to programaticaly in GridView check that my ButtonColumn was
clicked?? I've tried sth like this:
protected void MyGridView_SelectedIndexChanged(object sender,
EventArgs e)
{
if(MyGridView.SelectedRow.Cells[6])
{
MyGridView.Visible = false;
}

}

It dosent work I click on buttons but nothing is happened. I haven't
problems with dataGridView in WinForms. Please help me.

KK

Sep 20 '07 #1
1 3476
_nabuchodonozor wrote:
Hi
How to programaticaly in GridView check that my ButtonColumn was
clicked?? I've tried sth like this:
protected void MyGridView_SelectedIndexChanged(object sender,
EventArgs e)
{
if(MyGridView.SelectedRow.Cells[6])
{
MyGridView.Visible = false;
}

}

It dosent work I click on buttons but nothing is happened. I haven't
problems with dataGridView in WinForms. Please help me.
There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by yefei | last post: by
3 posts views Thread by VMI | last post: by
2 posts views Thread by cartmann | last post: by
6 posts views Thread by =?Utf-8?B?UGF1bA==?= | last post: by
13 posts views Thread by SAL | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.