B
Bernerd
Would anyone out there tell me how to make my C# datagrid
wrap the text in the cells. I haven't seen a good how to
out there that does this. I know it has something to do
with using styles but haven't got styles to work right yet
with my grid that get's dynamically populated by xml files.
Here's my code that gets the grid.
private void mnuContacts_Click(object sender,
System.EventArgs e)
{
string fn="C:\\applicationRoot\\data\\salesdata.xml";
DataSet ds=new DataSet();
ds.ReadXml(fn);
lbTables.Items.Clear();
foreach (DataTable dt in ds.Tables)
{
lbTables.Items.Add(dt.TableName);
}
dataSet=ds;
lbTables.SelectedIndex=0;
fnSchema=fn;
this.Text="Your Company - "+fnSchema;
}
wrap the text in the cells. I haven't seen a good how to
out there that does this. I know it has something to do
with using styles but haven't got styles to work right yet
with my grid that get's dynamically populated by xml files.
Here's my code that gets the grid.
private void mnuContacts_Click(object sender,
System.EventArgs e)
{
string fn="C:\\applicationRoot\\data\\salesdata.xml";
DataSet ds=new DataSet();
ds.ReadXml(fn);
lbTables.Items.Clear();
foreach (DataTable dt in ds.Tables)
{
lbTables.Items.Add(dt.TableName);
}
dataSet=ds;
lbTables.SelectedIndex=0;
fnSchema=fn;
this.Text="Your Company - "+fnSchema;
}