 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: about flexrgrid control</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/about-flexrgrid-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/about-flexrgrid-control/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: shasta88</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/about-flexrgrid-control/#comment-47102</link>
		<dc:creator>shasta88</dc:creator>
		<pubDate>Thu, 30 Jun 2005 16:24:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-47102</guid>
		<description><![CDATA[I don&#039;t use them, but Microsoft has a data bound grid control.  ]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t use them, but Microsoft has a data bound grid control.  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crvasquez</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/about-flexrgrid-control/#comment-47103</link>
		<dc:creator>crvasquez</dc:creator>
		<pubDate>Wed, 22 Jun 2005 16:27:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-47103</guid>
		<description><![CDATA[This code sample shows you how to load data from a database into a Flexgrid.  It is the same concept to obtain the data from Flexgrid and put it into a database.

******************************************************

Private Sub Form_Load()

Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim dbase As String
Dim sSQL As String
Dim iCount As Integer
Dim iField As Integer
Dim columnwidth() As Single
Dim fieldwidth As Single

    &#039; Get the data.
    dbase = &quot;c:somedatabase.mdb&quot;

    &#039; Open a connection.
    Set cn = New ADODB.Connection
    cn.ConnectionString = _
        &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp; _
        &quot;Data Source=&quot; &amp; dbase &amp; &quot;;&quot; &amp; _
        &quot;Persist Security Info=False&quot;
    cn.Open

    &#039; Select the data.
    sSQL = &quot;SELECT * FROM SOMETABLE&quot;

    &#039; Create Recordset
    Set rs = cn.Execute(sSQL)

    &#039; Define MSFlexGrid
    &#039; Use one fixed row and no fixed columns.
    MSFlexGrid1.Rows = 2
    MSFlexGrid1.FixedRows = 1
    MSFlexGrid1.FixedCols = 0

    &#039; Display column headers.
    MSFlexGrid1.Rows = 1
    MSFlexGrid1.Cols = rs.Fields.Count
    ReDim columnwidth(0 To rs.Fields.Count - 1)
    For iCount = 0 To rs.Fields.Count - 1
        MSFlexGrid1.TextMatrix(0, iCount) = rs.Fields(iCount).Name
        columnwidth(iCount) = TextWidth(rs.Fields(iCount).Name)
    Next

    &#039; Display the values for each row.
    iField = 1
    Do While Not rs.EOF
        MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1
        For iCount = 0 To rs.Fields.Count - 1
            MSFlexGrid1.TextMatrix(iField, iCount) = _
                rs.Fields(iCount).Value

            &#039; See how big the value is.
            fieldwidth = TextWidth(rs.Fields(iCount).Value)
            If columnwidth(iCount) ]]></description>
		<content:encoded><![CDATA[<p>This code sample shows you how to load data from a database into a Flexgrid.  It is the same concept to obtain the data from Flexgrid and put it into a database.</p>
<p>******************************************************</p>
<p>Private Sub Form_Load()</p>
<p>Dim cn As ADODB.Connection<br />
Dim rs As ADODB.Recordset<br />
Dim dbase As String<br />
Dim sSQL As String<br />
Dim iCount As Integer<br />
Dim iField As Integer<br />
Dim columnwidth() As Single<br />
Dim fieldwidth As Single</p>
<p>    &#8216; Get the data.<br />
    dbase = &#8220;c:somedatabase.mdb&#8221;</p>
<p>    &#8216; Open a connection.<br />
    Set cn = New ADODB.Connection<br />
    cn.ConnectionString = _<br />
        &#8220;Provider=Microsoft.Jet.OLEDB.4.0;&#8221; &amp; _<br />
        &#8220;Data Source=&#8221; &amp; dbase &amp; &#8220;;&#8221; &amp; _<br />
        &#8220;Persist Security Info=False&#8221;<br />
    cn.Open</p>
<p>    &#8216; Select the data.<br />
    sSQL = &#8220;SELECT * FROM SOMETABLE&#8221;</p>
<p>    &#8216; Create Recordset<br />
    Set rs = cn.Execute(sSQL)</p>
<p>    &#8216; Define MSFlexGrid<br />
    &#8216; Use one fixed row and no fixed columns.<br />
    MSFlexGrid1.Rows = 2<br />
    MSFlexGrid1.FixedRows = 1<br />
    MSFlexGrid1.FixedCols = 0</p>
<p>    &#8216; Display column headers.<br />
    MSFlexGrid1.Rows = 1<br />
    MSFlexGrid1.Cols = rs.Fields.Count<br />
    ReDim columnwidth(0 To rs.Fields.Count &#8211; 1)<br />
    For iCount = 0 To rs.Fields.Count &#8211; 1<br />
        MSFlexGrid1.TextMatrix(0, iCount) = rs.Fields(iCount).Name<br />
        columnwidth(iCount) = TextWidth(rs.Fields(iCount).Name)<br />
    Next</p>
<p>    &#8216; Display the values for each row.<br />
    iField = 1<br />
    Do While Not rs.EOF<br />
        MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1<br />
        For iCount = 0 To rs.Fields.Count &#8211; 1<br />
            MSFlexGrid1.TextMatrix(iField, iCount) = _<br />
                rs.Fields(iCount).Value</p>
<p>            &#8216; See how big the value is.<br />
            fieldwidth = TextWidth(rs.Fields(iCount).Value)<br />
            If columnwidth(iCount) </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crvasquez</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/about-flexrgrid-control/#comment-47104</link>
		<dc:creator>crvasquez</dc:creator>
		<pubDate>Wed, 22 Jun 2005 16:27:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-47104</guid>
		<description><![CDATA[This code sample shows you how to load data from a database into a Flexgrid.  It is the same concept to obtain the data from Flexgrid and put it into a database.

******************************************************

Private Sub Form_Load()

Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim dbase As String
Dim sSQL As String
Dim iCount As Integer
Dim iField As Integer
Dim columnwidth() As Single
Dim fieldwidth As Single

    &#039; Get the data.
    dbase = &quot;c:somedatabase.mdb&quot;

    &#039; Open a connection.
    Set cn = New ADODB.Connection
    cn.ConnectionString = _
        &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp; _
        &quot;Data Source=&quot; &amp; dbase &amp; &quot;;&quot; &amp; _
        &quot;Persist Security Info=False&quot;
    cn.Open

    &#039; Select the data.
    sSQL = &quot;SELECT * FROM SOMETABLE&quot;

    &#039; Create Recordset
    Set rs = cn.Execute(sSQL)

    &#039; Define MSFlexGrid
    &#039; Use one fixed row and no fixed columns.
    MSFlexGrid1.Rows = 2
    MSFlexGrid1.FixedRows = 1
    MSFlexGrid1.FixedCols = 0

    &#039; Display column headers.
    MSFlexGrid1.Rows = 1
    MSFlexGrid1.Cols = rs.Fields.Count
    ReDim columnwidth(0 To rs.Fields.Count - 1)
    For iCount = 0 To rs.Fields.Count - 1
        MSFlexGrid1.TextMatrix(0, iCount) = rs.Fields(iCount).Name
        columnwidth(iCount) = TextWidth(rs.Fields(iCount).Name)
    Next

    &#039; Display the values for each row.
    iField = 1
    Do While Not rs.EOF
        MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1
        For iCount = 0 To rs.Fields.Count - 1
            MSFlexGrid1.TextMatrix(iField, iCount) = _
                rs.Fields(iCount).Value

            &#039; See how big the value is.
            fieldwidth = TextWidth(rs.Fields(iCount).Value)
            If columnwidth(iCount) ]]></description>
		<content:encoded><![CDATA[<p>This code sample shows you how to load data from a database into a Flexgrid.  It is the same concept to obtain the data from Flexgrid and put it into a database.</p>
<p>******************************************************</p>
<p>Private Sub Form_Load()</p>
<p>Dim cn As ADODB.Connection<br />
Dim rs As ADODB.Recordset<br />
Dim dbase As String<br />
Dim sSQL As String<br />
Dim iCount As Integer<br />
Dim iField As Integer<br />
Dim columnwidth() As Single<br />
Dim fieldwidth As Single</p>
<p>    &#8216; Get the data.<br />
    dbase = &#8220;c:somedatabase.mdb&#8221;</p>
<p>    &#8216; Open a connection.<br />
    Set cn = New ADODB.Connection<br />
    cn.ConnectionString = _<br />
        &#8220;Provider=Microsoft.Jet.OLEDB.4.0;&#8221; &amp; _<br />
        &#8220;Data Source=&#8221; &amp; dbase &amp; &#8220;;&#8221; &amp; _<br />
        &#8220;Persist Security Info=False&#8221;<br />
    cn.Open</p>
<p>    &#8216; Select the data.<br />
    sSQL = &#8220;SELECT * FROM SOMETABLE&#8221;</p>
<p>    &#8216; Create Recordset<br />
    Set rs = cn.Execute(sSQL)</p>
<p>    &#8216; Define MSFlexGrid<br />
    &#8216; Use one fixed row and no fixed columns.<br />
    MSFlexGrid1.Rows = 2<br />
    MSFlexGrid1.FixedRows = 1<br />
    MSFlexGrid1.FixedCols = 0</p>
<p>    &#8216; Display column headers.<br />
    MSFlexGrid1.Rows = 1<br />
    MSFlexGrid1.Cols = rs.Fields.Count<br />
    ReDim columnwidth(0 To rs.Fields.Count &#8211; 1)<br />
    For iCount = 0 To rs.Fields.Count &#8211; 1<br />
        MSFlexGrid1.TextMatrix(0, iCount) = rs.Fields(iCount).Name<br />
        columnwidth(iCount) = TextWidth(rs.Fields(iCount).Name)<br />
    Next</p>
<p>    &#8216; Display the values for each row.<br />
    iField = 1<br />
    Do While Not rs.EOF<br />
        MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1<br />
        For iCount = 0 To rs.Fields.Count &#8211; 1<br />
            MSFlexGrid1.TextMatrix(iField, iCount) = _<br />
                rs.Fields(iCount).Value</p>
<p>            &#8216; See how big the value is.<br />
            fieldwidth = TextWidth(rs.Fields(iCount).Value)<br />
            If columnwidth(iCount) </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.013 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 22:12:53 -->