Issue when bind values in a matrix array
<p>I have a matrix with 40 rows and 10 columns,</p>

<p>I have bind values with different format from database results.</p>

<p>If i take a row value from datatable if it have value for 3 column and 2 rows means</p>

<p>I need to check all rows which have space for fill values on 3 cols and 2 rows.</p>

<p>So i have filled the matrix like,</p>

<p>a a b b b b b b b - the first row have only 1 col but my input is 3 so it cant bind there.</p>

<p>a a b b b b b b b - the 2nd row have only 1 col but my input is 3 so it cant bind there.</p>

<ul>
<li><ul>
<li>b b b b b b b -</li>
</ul></li>
<li><ul>
<li>b b b b b b b -</li>
</ul></li>
</ul>

<p>c c - - - - - - - - the 3rd row have only 8 col and my input is 3 so it can bind there.</p>

<p>c c - - - - - - - -</p>

<p>then my result is.,</p>

<p>a a b b b b b b b - No space for 3 empty cell</p>

<p>a a b b b b b b b - No space for 3 empty cell
- - b b b b b b b - Here is the problem, it have 3 empty space so its start to bind from the first in a for loop so overlapping happenns.</p>

<pre><code>                           It overwrite the alread filled value, so how to avoid that.
</code></pre>

<ul>
<li><ul>
<li>b b b b b b b-</li>
</ul></li>
</ul>

<p>c c 3 3 3 - - - - -</p>

<p>c c 3 3 3 - - - - -</p>

<p>then my input is also 3 col</p>

<p>Simply how to avoid the overlapping problem and how to find continous empty cell count of each row in a matrix table.</p>

<p>I need to track them in c#.</p>

<p>I have used the below code for that loop,</p>

<p>Its correctly binds values except the overwrite problem....</p>

<p><a href="http://forums.asp.net/t/1787246.aspx/1?How+to+avoid+the+overlapping+in+a+matrix+format+table+" rel="nofollow">http://forums.asp.net/t/1787246.aspx/1?How+to+avoid+the+overlapping+in+a+matrix+format+table+</a></p>
