Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
System.Data.OleDb.OleDbDataAdapter adapter = new System.Data.OleDb.OleDbDataAdapter(SqlStmt,conn);
if(this.myDatSet.Tables.Contains(TableName))
this.myDatSet.Tables[TableName].Clear();
adapter.FillSchema(myDatSet,SchemaType.Source,TableName);
for(x=0;x<myDatSet.Tables[TableName].Columns.Count;x++)
{
if(myDatSet.Tables[TableName].Columns[x].DataType.ToString().IndexOf("String")>0)
myDatSet.Tables[TableName].Columns[x].MaxLength=35;
}
int rowCount =adapter.Fill(this.myDatSet,TableName);
myDatSet.Tables[TableName].Columns[x].MaxLength=35;
}
MessageBox.Show(this, myDatSet.Tables[TableName].Columns["somestringcolumn"].MaxLength.ToString());
int rowCount =adapter.Fill(this.myDatSet,TableName);
MessageBox.Show(this, myDatSet.Tables[TableName].Columns["somestringcolumn"].MaxLength.ToString());
MessageBox.Show(this, myDatSet.Tables[TableName].Columns["somestringcolumn"].ToString());