User Profile
Collapse
-
You can bind the dataset to the datagridview by setting the dataset as the data source..... -
I assume you have declared all your variables. I think you should omit the "=" sign on (i <= listBox1.Items. Count). It will cause an argument null exception because the index of the listbox will be greater than the number of items on the collection. Hope this helps.
Good Luck ^_^Leave a comment:
-
You have to create an xml configuration file for your application. I believe you can do this by adding new item, then choose Settings File. You can create a connection settings inside it and you can also store other settings in a configuration file.
Here's a sample code inside a configuration file:
<configuratio n>
<appSettings>
<add key="Connection String" value="Provider =SQLOLEDB.1;... "/>...Leave a comment:
-
I hope this link will help you: http://www.daniweb.com/forums/thread49952.htm l
Good luck. ^_^Leave a comment:
-
Updating the content of DataGridView
Hi Guyz,
Need some help in updating my data grid view. I used the Rows removed and selection changed events. i have a code on the selection changed events and it worked well but the code on RowsRemoved only clears the datagridview, it does not update its contents.
Here's the code:
int n = featureDataGrid View1.SelectedR ows[0].Index;
if (feature[n].Parameter.Coun t... -
if you want to add an empty row to the datagrid, just use datagrid.rows.a dd()Leave a comment:
-
You have to set datagridview property, selection mode to full row select.
then use the datagridview.Se lectedRows[0].Cells[cell index].value
This gets the value associated with the cell of the selected row....Leave a comment:
-
Pass the value of textbox in the constructor while calling form2. store the value in a global variable inside form2, eventhough it is not used, and pass the value on form3 when calling it by using that variable as parameter for the constructor.Leave a comment:
-
I have a problem like that before and created this code to identify the selected row in dataridview:
String str = "";
String intRow = "";
Point row = [DataGridView].CurrentCellAdd ress;
intRow = Convert.ToStrin g(row);
if (intRow.Length == 9)
{
str = intRow.Substrin g(7, 1);
...Leave a comment:
-
Have you tried creating just one button?
If not yet, just try your code with just a button.....Leave a comment:
-
hi r035198x,
i think i'm using ADO.NET. I using namespaces "System.Dat a" and "System.IO"
Do you have any idea on how to implement this? Thanks....Leave a comment:
-
Saving file as .xls and with sheet 1 as worksheet
Hi, I'm writing a code in c# that will export a table to excel file ".xls". I want to save every file with different filename and worksheets of each as sheet 1. i have no idea how to format the document using c#. Can any body help me?
Any suggestion will be a big help. Thanks. ^_^
No activity results to display
Show More
Leave a comment: