Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 718903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:34:51+00:00 2026-05-14T05:34:51+00:00

I just started working on a small team of .NET programmers about a month

  • 0

I just started working on a small team of .NET programmers about a month ago and recently got in a discussion with our team lead regarding why we don’t use databinding at all in our code. Every time we work with a data grid, we iterate through a data table and populate the grid row by row; the code usually looks something like this:

Dim dt as DataTable = FuncLib.GetData("spGetTheData ...")
Dim i As Integer

For i = 0 To dt.Rows.Length - 1 '(not sure why we do not use a for each here)'
  gridRow = grid.Rows.Add()
  gridRow(constantProductID).Value = dt("ProductID").Value
  gridRow(constantProductDesc).Value = dt("ProductDescription").Value
Next

'(I am probably missing something in the code, but that is basically it)'

Our team lead was saying that he got burned using data binding when working with Sheridan Grid controls, VB6, and ADO recordsets back in the nineties. He’s not sure what the exact problem was, but he remembers that binding didn’t work as expected and caused him some major problems. Since then, they haven’t trusted data binding and load the data for all their controls by hand.

The reason the conversation even came up was because I found data binding to be very simple and really liked separating the data presentation (in this case, the data grid) from the in-memory data source (in this case, the data table). “Loading” the data row by row into the grid seemed to break this distinction. I also observed that with the advent of XAML in WPF and Silverlight, data-binding seems like a must-have in order to be able to cleanly wire up a designer’s XAML code with your data.

When should I be cautious of using data-binding in .NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:34:52+00:00Added an answer on May 14, 2026 at 5:34 am

    If all you are doing is displaying data, in my opinion, there is no reason NOT to use databinding.

    I too come from the VB6 world, where databinding bit us again and again, so we had standards and workarounds in order not to use it.

    Enter .NET, where databinding is as flexible as you need it to be. I have come to really appreciate the power that binding has now.

    You are writing much unnecessary code by rejecting the built in capabilities.

    You can even bind on-screen objects such as textboxes to properties in classes.
    Check out this link for an overview of winforms databinding.
    http://msdn.microsoft.com/en-us/library/ef2xyb33(v=VS.100).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently just started playing around in PHP and got myself a small project/homework.
Just started working with .NET and MVC(1). I'm having a problem wherein in my
Just started working with Mercurial a few days ago and there's something I don't
I just started working on an asp.net / C#.net application that is going to
The small software team I work on recently got approved to upgrade to Visual
I just started working on upgrading a small component in a distributed java application.
I recently submitted a small app working on Silverlight framework. But my app got
I have just started working with a new company in a very small IT
Just started working with android and ran into a small problem. I am have
I started working on a small game just to test peer-to-peer gameplay. Anyway, as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.