Wednesday, September 21

to display panel scroll bar according to a particular size


if (DS.Tables.Count > 0)
            {

                GdViewLndryRprt.DataSource = DS.Tables[0];
                GdViewLndryRprt.DataBind();
                if (DS.Tables[0].Rows.Count > 7)
                {
//bydefault panel7 should be set as visible=false and scrollbars=none
                    Panel7.Visible = true;
                    Panel7.ScrollBars = ScrollBars.Vertical;
                    Panel7.Height = 250;
                }
                else
                {
                    Panel7.Visible = true;
                    Panel7.ScrollBars = ScrollBars.Auto;
                    Panel7.Height = GdViewLndryRprt.Height;
                }


            }

No comments:

Post a Comment

Please don't spam, spam comments is not allowed here.

.

ShibashishMnty
shibashish mohanty