thevictorchen

Stories submitted by thevictorchen

A Scrollable GridView with a Fixed Header in C#(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 6 months ago

We begin with a standard Panel control. With the Panel control, we can control the width, height, and scrollable option. For our code example, we set the height as 200px, the width as 100%, and set the Panel to scroll while showing only the vertical scrollbars. We will give the Panel the id pnlWrapper. read more...

add a comment |category: |Views: 285

tags: another

Store Hidden GridView Columns in a DataKey(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 6 months ago

When binding a DataTable to a GridView, I always map every column in the DataTable to a new column in GridView (whether it be manually or automatic). I would then hide the columns I did not want to display. In this way, I could still access values in the hidden columns on GridView events such as RowDataBound. A common example of this situation is creating a hidden column for the row’s unique database id. read more...

add a comment |category: |Views: 16

tags: another

Visual Studio Tip: Bring up Intellisense Shortcut(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 6 months ago

When I first started, I would attempt to access an object’s method only to realize I had selected the wrong method. I would then need to delete past the period, then press period again to see all the Intellisense options. Now, I know and use all the time the shortcut CTRL+SPACE to bring up the Intellisense menu. read more...

add a comment |category: |Views: 15

tags: another

How to Create a Firefox Search Plugin (Extension)(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 6 months ago

The Firefox browser (as of version 3.0.2 and likely earlier versions), there is a search bar at the top right. Custom search engine plugins are available to allow easier searching. For this example, I will demonstrate how to create search engine for the search engine Scour. We will begin with a template which should be copy and pasted into an xml file (in our case, it will be scour.xml). read more...

add a comment |category: |Views: 21

tags: another

Easily Convert An Existing Web Form to a Web Content Form(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 6 months ago

To convert from a Web Form to Web Content Form, all of the changes will occur in the Web Form’s aspx page. Essentially, no manual changes are required in the aspx.cs or aspx.designer pages. Now, I will make a couple of assumptions. Let us assume our Web Form is called Default.aspx and our Master Page file is called Site1.Master. read more...

add a comment |category: |Views: 22

tags: another

How to Use a Generic List in C#(victorchen.info)

submitted by thevictorchenthevictorchen(45) 3 years, 7 months ago

Using a Generic List in C# is an efficient method of storing a collection of variables. And probably the best part is that the List is strongly typed and casting (which degrades performance) will no longer be necessary. Your collection of variables should be of the same data type. Generic Lists were first introduced into the .NET Framework 2.0. read more...

add a comment |category: |Views: 31

tags: another