Click here to Skip to main content
15,914,419 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Upload Image Pin
MiaanG19-Mar-07 21:48
MiaanG19-Mar-07 21:48 
AnswerRe: Upload Image Pin
Vasudevan Deepak Kumar19-Mar-07 5:31
Vasudevan Deepak Kumar19-Mar-07 5:31 
Questionneed help whit girdview Pin
Lappalainen Antti19-Mar-07 1:41
Lappalainen Antti19-Mar-07 1:41 
AnswerRe: need help whit girdview Pin
Kschuler19-Mar-07 9:25
Kschuler19-Mar-07 9:25 
GeneralRe: need help whit girdview Pin
Lappalainen Antti19-Mar-07 19:55
Lappalainen Antti19-Mar-07 19:55 
GeneralRe: need help whit girdview Pin
varshavmane19-Mar-07 20:01
varshavmane19-Mar-07 20:01 
GeneralRe: need help whit girdview Pin
Kschuler20-Mar-07 2:51
Kschuler20-Mar-07 2:51 
GeneralRe: need help whit girdview Pin
Lappalainen Antti20-Mar-07 3:33
Lappalainen Antti20-Mar-07 3:33 
Thanks for your help I find the resolution for the problem. I needet to this


gvErot12 = generateBoundField(datatable, gvErot12);

private GridView generateBoundField(DataTable dt,GridView gv)
{
//Iterate through the columns of the datatable to set the data bound field dynamically.
foreach (DataColumn col in dt.Columns)
{
//Declare the bound field and allocate memory for the bound field.
BoundField bfield = new BoundField();
//Initalize the DataField value.
bfield.DataField = col.ColumnName;
//Initialize the HeaderText field value.
bfield.HeaderText = col.ColumnName;
//Add the newly created bound field to the GridView.
gv.Columns.Add(bfield);
}
return gv;
}

this returns the gridview back to the main program and there

gvErot12.DataSource = datatable;
gvErot12.DataBind();

thanks for quideance!!!!!!!
QuestionHow to Load an Image into Imagebox from SQl Pin
S.Rajeshwar19-Mar-07 0:46
S.Rajeshwar19-Mar-07 0:46 
AnswerRe: How to Load an Image into Imagebox from SQl Pin
Vasudevan Deepak Kumar19-Mar-07 5:32
Vasudevan Deepak Kumar19-Mar-07 5:32 
AnswerRe: How to Load an Image into Imagebox from SQl Pin
GaryWoodfine 19-Mar-07 13:50
professionalGaryWoodfine 19-Mar-07 13:50 
Questionneed help with asp.net2 sql question Pin
neodeaths18-Mar-07 23:45
neodeaths18-Mar-07 23:45 
AnswerRe: need help with asp.net2 sql question Pin
Frank Kerrigan19-Mar-07 1:26
Frank Kerrigan19-Mar-07 1:26 
GeneralRe: need help with asp.net2 sql question Pin
neodeaths19-Mar-07 15:25
neodeaths19-Mar-07 15:25 
GeneralRe: need help with asp.net2 sql question Pin
neodeaths19-Mar-07 19:00
neodeaths19-Mar-07 19:00 
Questiongrid view problem Pin
nikhil123418-Mar-07 23:39
nikhil123418-Mar-07 23:39 
AnswerRe: grid view problem Pin
ritu432119-Mar-07 0:24
ritu432119-Mar-07 0:24 
GeneralRe: grid view problem Pin
nikhil123419-Mar-07 0:36
nikhil123419-Mar-07 0:36 
GeneralRe: grid view problem Pin
ritu432119-Mar-07 0:39
ritu432119-Mar-07 0:39 
QuestionSession Variable Pin
vengaqua18-Mar-07 23:36
vengaqua18-Mar-07 23:36 
AnswerRe: Session Variable Pin
ritu432119-Mar-07 0:26
ritu432119-Mar-07 0:26 
AnswerRe: Session Variable Pin
enjoycrack19-Mar-07 0:38
enjoycrack19-Mar-07 0:38 
Questiondropdownlist Pin
Oga M18-Mar-07 22:31
Oga M18-Mar-07 22:31 
AnswerRe: dropdownlist Pin
Tirthadip18-Mar-07 22:52
Tirthadip18-Mar-07 22:52 
GeneralRe: dropdownlist Pin
Oga M18-Mar-07 23:06
Oga M18-Mar-07 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.