Click here to Skip to main content
15,909,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to IMMEDIATELY terminate a background thread? Pin
Nilesh Hapse22-Nov-07 19:47
Nilesh Hapse22-Nov-07 19:47 
GeneralRe: How to IMMEDIATELY terminate a background thread? Pin
alexvw23-Nov-07 2:26
alexvw23-Nov-07 2:26 
GeneralRe: How to IMMEDIATELY terminate a background thread? Pin
Dave Kreskowiak23-Nov-07 4:24
mveDave Kreskowiak23-Nov-07 4:24 
GeneralThank you gentlemen for your insight. Pin
alexvw23-Nov-07 12:48
alexvw23-Nov-07 12:48 
QuestionHelp with GridView and Binding Data [modified] Pin
Fergal8322-Nov-07 15:05
Fergal8322-Nov-07 15:05 
AnswerRe: Help with GridView and Binding Data Pin
Michael Sync22-Nov-07 16:07
Michael Sync22-Nov-07 16:07 
GeneralRe: Help with GridView and Binding Data Pin
Fergal8322-Nov-07 16:15
Fergal8322-Nov-07 16:15 
GeneralRe: Help with GridView and Binding Data Pin
Michael Sync22-Nov-07 16:56
Michael Sync22-Nov-07 16:56 
The problem caused because of your structure.

Don't use the public variable. Please use "Property" instead of public variable.. then, you will be able to bind to "autogenerated column" or "non-autogenerated column".

Hope it helps..

The following code is tested..

public struct  myStructure {<br />
    public string duration;<br />
    public String Duration<br />
    {<br />
        get{<br />
            return duration;<br />
        }<br />
        set<br />
        {<br />
            duration = value;<br />
        }        <br />
    }<br />
}<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        System.Collections.ArrayList myArrayList = new System.Collections.ArrayList ();<br />
        myStructure mys1 = new myStructure ();<br />
        //mys1.startDate = DateTime.Now.Date;<br />
        mys1.duration = "aa";<br />
        myArrayList.Add (mys1);<br />
        GridView1.DataSource = myArrayList;<br />
        GridView1.DataBind ();<br />
    }<br />
}<br />


Note: Sorry for C# code. you can easily convert it to vb.net code..

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

GeneralRe: Help with GridView and Binding Data Pin
Fergal8322-Nov-07 17:05
Fergal8322-Nov-07 17:05 
GeneralRe: Help with GridView and Binding Data Pin
Michael Sync22-Nov-07 18:47
Michael Sync22-Nov-07 18:47 
GeneralRe: Help with GridView and Binding Data Pin
codeproject_priya6-Oct-09 3:38
codeproject_priya6-Oct-09 3:38 
QuestionCode involving windows media player Pin
mykingdomforanewusername22-Nov-07 13:49
mykingdomforanewusername22-Nov-07 13:49 
AnswerRe: Code involving windows media player Pin
Christian Graus22-Nov-07 14:41
protectorChristian Graus22-Nov-07 14:41 
GeneralRe: Code involving windows media player Pin
mykingdomforanewusername22-Nov-07 15:51
mykingdomforanewusername22-Nov-07 15:51 
GeneralRe: Code involving windows media player Pin
Christian Graus22-Nov-07 17:00
protectorChristian Graus22-Nov-07 17:00 
GeneralRe: Code involving windows media player Pin
Michael Sync22-Nov-07 17:06
Michael Sync22-Nov-07 17:06 
Questionabout HTML help creater Pin
bapu288922-Nov-07 8:17
bapu288922-Nov-07 8:17 
AnswerRe: about HTML help creater Pin
Michael Sync22-Nov-07 16:04
Michael Sync22-Nov-07 16:04 
AnswerRe: about HTML help creater Pin
Vasudevan Deepak Kumar22-Nov-07 19:58
Vasudevan Deepak Kumar22-Nov-07 19:58 
QuestionHow to receive WindowMessages without visible Window? Pin
ponchofiesta22-Nov-07 7:27
ponchofiesta22-Nov-07 7:27 
AnswerRe: How to receive WindowMessages without visible Window? Pin
Dave Kreskowiak23-Nov-07 4:19
mveDave Kreskowiak23-Nov-07 4:19 
Questionon error goto handling - is this possible (VBS) Pin
stephan_00722-Nov-07 5:37
stephan_00722-Nov-07 5:37 
AnswerRe: on error goto handling - is this possible (VBS) Pin
Michael Sync22-Nov-07 16:01
Michael Sync22-Nov-07 16:01 
GeneralRe: on error goto handling - is this possible (VBS) Pin
ChandraRam22-Nov-07 23:40
ChandraRam22-Nov-07 23:40 
GeneralRe: on error goto handling - is this possible (VBS) Pin
Michael Sync23-Nov-07 0:33
Michael Sync23-Nov-07 0:33 

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.