SOURCES:
Multiple sources
public static void PrepareGV ( ref System.Web.UI.WebControls.GridView table_list_gv,
ref System.Data.DataSet rds )
{
if (table_list_gv != null)
{
foreach (System.Data.DataColumn dc in rds.Tables[0].Columns)
{
BoundField nameColumn = new BoundField ( );
nameColumn.DataField = dc.ColumnName;
nameColumn.HeaderText = dc.ColumnName ;
nameColumn.SortExpression = dc.ColumnName;
table_list_gv.Columns.Add ( nameColumn );
} //eof foreach col in the ds
table_list_gv.DataSource = rds.Tables [ 0 ];
table_list_gv.AllowPaging = true;
table_list_gv.AllowSorting = true;
table_list_gv.EnableSortingAndPagingCallbacks = false;
table_list_gv.Visible = true;
table_list_gv.DataBind ( );
}
else
{
throw new Utils.CustomException ( "a null table_list_gv was passed !!!" );
}
} //eof private static void PrepareGV (ref System.Web.UI.WebControls.GridView table_list_gv )
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!