Click here to Skip to main content
15,892,965 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Generic class with reference to another generic class Pin
Nitin Singh India26-Mar-11 10:02
Nitin Singh India26-Mar-11 10:02 
GeneralRe: Generic class with reference to another generic class Pin
lukeer28-Mar-11 9:10
lukeer28-Mar-11 9:10 
QuestionHow publsiher-subscriber configurations can be included in a single app.config? Pin
glitteringsound8-Feb-11 6:59
glitteringsound8-Feb-11 6:59 
AnswerRe: How publsiher-subscriber configurations can be included in a single app.config? Pin
#realJSOP8-Feb-11 9:55
mve#realJSOP8-Feb-11 9:55 
GeneralRe: How publsiher-subscriber configurations can be included in a single app.config? Pin
glitteringsound9-Feb-11 4:52
glitteringsound9-Feb-11 4:52 
QuestionWCF webservice Pin
Pranit Kothari8-Feb-11 6:47
Pranit Kothari8-Feb-11 6:47 
AnswerRe: WCF webservice Pin
dan!sh 8-Feb-11 7:10
professional dan!sh 8-Feb-11 7:10 
QuestionAdding Row Numbers to DataGridView Pin
Member 22565337-Feb-11 5:27
Member 22565337-Feb-11 5:27 
I have a function that loads data and configures the datagrid. I did this so that all the datagrids in the project would be the same. So I added a bit of code that is supposed to add row numbers to each of the datagrids.
<pre>
int numberofrows = DG.Rows.Count;
int len = numberofrows.ToString().Length;
string NumberForRow;
for (x = 0; x < DG.Rows.Count; x++)
{
NumberForRow = Convert.ToString(x + 1);
while (NumberForRow.Length < len)
{
NumberForRow = "0" + NumberForRow;
}
DG.Rows[x].HeaderCell.Value = NumberForRow;
}
</pre>
This code is fired as so
GF.LoadDataGrid(dgInvoices, DT, true,"InvoiceID,OrderID,Status,Date", "EVEN", "");
Where GF is GeneralFunctions class and LoadDataGrid is a method, the paramaters are dgInvoice is the DataGridView to load, DT is the DataTable, true/false is readonly, The first string is the Column headers, the second string is column spacing and the last string is columns that need to hidden if any. No the weird part. This line of code does not put in the Rowheader numbers. The DataGridView dgInvoices has an event tied to it that fills in another datagrid view with the detail of the invoice the call to fill that DataGridView is exactly the same
GF.LoadDataGrid(dgInvoiceDetail,DT,true,"ItemID,Description,Qty,Amount","EVEN","");
and for that datagrid the number do appear. I know that there is no difference between the two datagrids as on the form, I have copied and pasted the first datagrid to make the second datagrid so they are the same. Not sure what is going on.
Any help would be appreicated.

Thank you.
AnswerRe: Adding Row Numbers to DataGridView Pin
Yusuf7-Feb-11 6:10
Yusuf7-Feb-11 6:10 
GeneralRe: Adding Row Numbers to DataGridView Pin
Member 22565337-Feb-11 6:56
Member 22565337-Feb-11 6:56 
AnswerRe: Adding Row Numbers to DataGridView Pin
Luc Pattyn7-Feb-11 8:19
sitebuilderLuc Pattyn7-Feb-11 8:19 
AnswerRe: Adding Row Numbers to DataGridView Pin
Member 22565337-Feb-11 7:08
Member 22565337-Feb-11 7:08 
AnswerRe: Adding Row Numbers to DataGridView Pin
GenJerDan7-Feb-11 9:32
GenJerDan7-Feb-11 9:32 
AnswerRe: Adding Row Numbers to DataGridView Pin
RobCroll8-Feb-11 1:07
RobCroll8-Feb-11 1:07 
QuestionI have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:15
Honeyboy_206-Feb-11 0:15 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:35
Honeyboy_206-Feb-11 0:35 
GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) [modified] Pin
_Erik_8-Feb-11 3:38
_Erik_8-Feb-11 3:38 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Richard MacCutchan6-Feb-11 1:35
mveRichard MacCutchan6-Feb-11 1:35 
GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
#realJSOP7-Feb-11 5:20
mve#realJSOP7-Feb-11 5:20 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Abhinav S7-Feb-11 6:42
Abhinav S7-Feb-11 6:42 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Bernhard Hiller8-Feb-11 0:46
Bernhard Hiller8-Feb-11 0:46 
QuestionTab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 4:54
Member 22565334-Feb-11 4:54 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Yusuf4-Feb-11 5:33
Yusuf4-Feb-11 5:33 
GeneralRe: Tab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 5:39
Member 22565334-Feb-11 5:39 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Luc Pattyn4-Feb-11 6:19
sitebuilderLuc Pattyn4-Feb-11 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.