N
nkunkov
Hi,
It's my first try with C# and I'm clueless.
I have a page where I input two dates, click a button that runs a query
and binds it to a datagrid. When the dataset is relatively small, all
is OK and I can click my button again and again and it will repopulate
my screen. When my dataset is large (a few hundred rows), the data is
displayed on the screen but when I click the button again to rerun the
query and repopulate the datagrid, I get an error "page can not be
displayed".
here is some of my code:
OracleDataAdapter da = new OracleDataAdapter(myCommand);
DataSet ds = new DataSet();
conn.Open();
da.Fill(ds, "table");
conn.Close();
RegistryDataGrid.DataSource = ds.Tables["table"];
RegistryDataGrid.DataBind();
Another question I have is how can I set colors of a datagrid according
to the data return. Lets say if I have "new" in my first column I want
the row to be yellow....
Your help is appreciated
Thanks
NK
It's my first try with C# and I'm clueless.
I have a page where I input two dates, click a button that runs a query
and binds it to a datagrid. When the dataset is relatively small, all
is OK and I can click my button again and again and it will repopulate
my screen. When my dataset is large (a few hundred rows), the data is
displayed on the screen but when I click the button again to rerun the
query and repopulate the datagrid, I get an error "page can not be
displayed".
here is some of my code:
OracleDataAdapter da = new OracleDataAdapter(myCommand);
DataSet ds = new DataSet();
conn.Open();
da.Fill(ds, "table");
conn.Close();
RegistryDataGrid.DataSource = ds.Tables["table"];
RegistryDataGrid.DataBind();
Another question I have is how can I set colors of a datagrid according
to the data return. Lets say if I have "new" in my first column I want
the row to be yellow....
Your help is appreciated
Thanks
NK