CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2006
    Posts
    449

    In my form load event... check datatable column value...

    On my form load event, I want to check the value of a particular column from the database till the End Of File and then perform a action. For ex: There is a column named 'SelectOption' in my datatable 'test' and I want to do some action if the value of the 'SelectOption' = 'Option1' till the end of file is reached. Hope am clear. Please help me on this regard. THank you!

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: In my form load event... check datatable column value...

    So where do you have the problem ???

    in the form_load event open your dataset (as per usual method) and do your checks...

    But just something to note, this will drastically effect the load time of your form...

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Oct 2006
    Posts
    449

    Re: In my form load event... check datatable column value...

    What / How will be my check statement? I mean...

    SelectOption(Database column name) = "Option1" till the end of the file. Please help me out.

  4. #4
    Join Date
    Oct 2006
    Posts
    449

    Re: In my form load event... check datatable column value...

    Am sorry, I forgot to ask this... You had mentioned "... this will drastically effect the load time of your form" and you are absolutely right. Let me explain you what am planning to do... On loading my main form (start form) based on the Date.Today... I want to dynamically add rows/values on to my database.

    So what/how do you suggest on handling this out?

  5. #5
    Join Date
    Jan 2007
    Posts
    1

    Do you find out the Grid inactive method?

    [How to make the Grid inactive (not in focus) as long as the user clicks the Grid's cell?

    I saw your question. I have the same problem.

    if you solve this problem, send e-mail me, please.

    or reply this or passed your quote.

  6. #6
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: In my form load event... check datatable column value...

    To open a ADO database look at this thread and i sugest reading over this thread for more information on this..

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured