No announcements
Found 2165773 threads
-
1 Votes
Accessing specific columns of a datatable
If you got an IndexOutOfRangeException then it's likely b/c there aren't any rows or you're looking past the # of rows/columns.Answered | 3 Replies | 2199 Views | Created by Aarsh (MCTS) - Tuesday, January 17, 2012 7:51 AM | Last reply by William G Ryan - Tuesday, January 17, 2012 9:27 PM -
1 Votes
Get Specific Cloumn value of the Datatable
The Rows property of a DataTable contains all of the rows in the table.Answered | 3 Replies | 812 Views | Created by KamAbA - Monday, January 27, 2014 7:13 PM | Last reply by Shridhar J Joshi - Tuesday, January 28, 2014 9:37 AM -
0 Votes
Compute Median of values in a DataTable Column
Here a solution <summary> /// Return median from a given column of a datatable /// </summary> /// <param ...Answered | 4 Replies | 10619 Views | Created by Job Lot - Friday, July 8, 2005 5:35 AM | Last reply by JLopezB - Friday, August 24, 2012 9:41 PM -
2 Votes
Filling a specific column of a datatable with data
or: DataTable table = new DataTable(); //create columns and fill it... for (int i = 0; iAnswered | 3 Replies | 16684 Views | Created by witdaj - Monday, June 4, 2012 11:07 PM | Last reply by Mitja Bonca - Tuesday, June 5, 2012 6:13 AM -
0 Votes
how can add a column's value to use in an expression of another datatable's column
Hello, Strictly speaking functionality of a DataColumn Expression you can only do this where all tables have a master detail relationship which allows you to access columns ...Answered | 1 Replies | 697 Views | Created by pooya.mahmoodi - Thursday, June 6, 2013 3:55 AM | Last reply by Kareninstructor - Thursday, June 6, 2013 4:05 AM -
0 Votes
Adding row to datatable adds two rows
Dim column As DataColumn Dim row As DataRow ' Create new DataColumn, set DataType, ColumnName ' and add to DataTable.Answered | 13 Replies | 1466 Views | Created by Xan To - Friday, September 2, 2016 10:02 AM | Last reply by Xan To - Monday, September 5, 2016 11:19 AM -
1 Votes
DataTable - sum values of a column
Hi, You can do SUM by using LINQ in one step var sum = datatable.Answered | 4 Replies | 4872 Views | Created by himo - Tuesday, December 30, 2008 10:52 AM | Last reply by Syed Shakeer Hussain - Friday, June 15, 2012 6:43 PM -
1 Votes
how to add rows in datatable
No need to use IF ELSE to identify if the table already have columns or not, the table will always have at least one column, isn't it?Answered | 5 Replies | 5673 Views | Created by nitinsharma1983 - Tuesday, January 17, 2012 9:51 AM | Last reply by Helen Zhou - Tuesday, January 24, 2012 2:54 AM -
4 Votes
Accessing specific columns of a datatable
I want to use specific cells of each row of a datatable.Answered | 5 Replies | 13437 Views | Created by Aarsh (MCTS) - Tuesday, January 17, 2012 7:53 AM | Last reply by Martin_Xie - Thursday, January 19, 2012 5:07 AM -
3 Votes
Checking for value in specific column
= dt.DefaultView For Each row As DataGridViewRow In DataGridView2.Rows insertdata(row.Cells("Room No").Value, ...Answered | 7 Replies | 571 Views | Created by BloodySandwich - Saturday, May 5, 2018 4:32 PM | Last reply by Cherry Bu - Monday, May 7, 2018 7:00 AM -
0 Votes
Add row to Datatable
I have declared a datatable globaly in a application, and i assigned the datatable to the new datatable declared in the function. when i add a row or ...Answered | 1 Replies | 1749 Views | Created by Rajiv Prathap - Tuesday, September 25, 2012 3:47 PM | Last reply by MasaSam - Tuesday, September 25, 2012 5:23 PM -
1 Votes
Check if datatable column has values
thanks, so according to this example, i have to loop on all rows and columns, right?Answered | 10 Replies | 17041 Views | Created by gidi - Saturday, November 26, 2011 5:04 PM | Last reply by Harjohn - Monday, November 28, 2011 9:24 AM -
9 Votes
Count number of row in a specific datatable?
I want to count the total rows in those tables, and the total value in column "Equipment availability" having value =1.Answered | 11 Replies | 12721 Views | Created by AnAnnn - Saturday, March 24, 2018 1:08 PM | Last reply by Cherry Bu - Monday, March 26, 2018 5:23 AM -
0 Votes
convert datatable column values double[]
x.Field<Double>("Value")); Console.ReadKey(); } This will accomplish what you need it to do you just need to define thatAnswered | 4 Replies | 13959 Views | Created by Born2Achieve - Friday, February 7, 2014 5:14 PM | Last reply by IdahoSixString - Friday, February 7, 2014 8:36 PM -
0 Votes
Autoincrement Column in DataTable contains null Values
Otherwise, just loop through your datatable and set the column value yourself.Answered | 2 Replies | 3488 Views | Created by Rizwan Liaquat - Thursday, December 25, 2008 8:32 AM | Last reply by Ewald Hofman (MSFT) - Thursday, December 25, 2008 11:53 AM -
0 Votes
Add a row to a datatable from a form button click
I have a login form connected to a datatable containing 2 columns: username ans password.Answered | 6 Replies | 5010 Views | Created by David Tompkins - Thursday, September 22, 2011 4:57 AM | Last reply by Mike Feng - Sunday, September 25, 2011 8:25 AM -
0 Votes
DataTable ColumnChanged event not firing with correct row and column
In my test project, all the cells can raise the ColumnChanged event, I think you just print out the value, so when you print the ColumnChanged values, there would ...Answered | 3 Replies | 6198 Views | Created by BobUPS - Friday, June 24, 2011 6:51 PM | Last reply by Mike Dos Zhang - Wednesday, June 29, 2011 3:24 AM -
1 Votes
Deleting Columns in a DataTable based on null values.
I just know that there will be null columns and I also know that there will only ever be one row.Answered | 8 Replies | 4203 Views | Created by lj09IT - Monday, July 30, 2012 2:57 PM | Last reply by lj09IT - Wednesday, August 1, 2012 8:36 PM -
0 Votes
How to goto a specific row in datatable
datatable[6]["YourColumnName"]= "TheSeventRowHasIndexNumberSix"; Success CorAnswered | 2 Replies | 3088 Views | Created by hi123456 - Friday, May 20, 2011 7:18 AM | Last reply by Cor Ligthert - Friday, May 20, 2011 7:34 AM -
0 Votes
how to sort Rows on a specific Column Data value
You can convert all the values to same datatype and then sort.Answered | 5 Replies | 4131 Views | Created by b_blase - Monday, December 5, 2011 3:06 PM | Last reply by Jason Tom Thomas - Tuesday, December 6, 2011 4:55 PM - Items 1 to 20 of 2165773 Next ›
No announcements