Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

create dropdown in datatable c# dynamically

DataTable dtt1 = (DataTable)Session["dbasecolumns"];
int l = dtt1.Columns.Count;
string[] sqlcolumn = new string[l];
DropDownList drd = new DropDownList();
foreach (String colname in sqlcolumn)
{
    drd.Items.Add(colname);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: Transpose Matrix C Sharp 
Csharp :: c# run a scheduled task 
Csharp :: *ngif vs ngif 
Csharp :: array to object c# 
Csharp :: remove numericUpDown arrows 
Csharp :: how to remove from list from index c# 
Csharp :: action delegate c# 
Csharp :: convert stream to base64 string c# 
Csharp :: how to create a string in c# 
Csharp :: how to add a ddos api to a c# console app 
Csharp :: how to get the dynamic year for your web app in mvc 
Csharp :: can object change color when collided with particles unity 
Csharp :: why does everything reset when switching scene unity 
Csharp :: how to make diagonal movement not double the speed of the player in unity 
Csharp :: Count Rows of table using Linq 
Csharp :: c# yes no cancel dialog with icons 
Csharp :: c# namespace name form1 could not be found 
Csharp :: c# fieldnullexception 
Csharp :: how to get point of collision in unity 
Csharp :: unity editorwindowtitle obsolete 
Csharp :: unity time.fixeddeltatime 
Csharp :: asp.net list size 
Csharp :: how to declare variables in c# 
Csharp :: c# set two dimensional array 
Csharp :: principalcontext c# example 
Csharp :: c# load button image from resource 
Csharp :: c# order of initialization 
Csharp :: xunit setup throw exception 
Csharp :: Entity Framework 4 and caching of query results 
Csharp :: .net return manual status code 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =