Click here to Skip to main content
15,905,073 members
Home / Discussions / C#
   

C#

 
GeneralRe: pass a Size object to sendmessage Pin
manchukuo6-May-11 11:14
manchukuo6-May-11 11:14 
QuestionRandom numbers [modified] Pin
meet_ssr6-May-11 2:46
meet_ssr6-May-11 2:46 
AnswerRe: Random numbers Pin
PIEBALDconsult6-May-11 2:52
mvePIEBALDconsult6-May-11 2:52 
GeneralRe: Random numbers PinPopular
David19876-May-11 2:56
David19876-May-11 2:56 
AnswerRe: Random numbers Pin
Luc Pattyn6-May-11 3:06
sitebuilderLuc Pattyn6-May-11 3:06 
GeneralRe: Random numbers PinPopular
David19876-May-11 3:45
David19876-May-11 3:45 
AnswerRe: Random numbers Pin
Luc Pattyn6-May-11 3:52
sitebuilderLuc Pattyn6-May-11 3:52 
GeneralRe: Random numbers PinPopular
David19876-May-11 3:57
David19876-May-11 3:57 
GeneralRe: Random numbers Pin
PIEBALDconsult6-May-11 16:19
mvePIEBALDconsult6-May-11 16:19 
GeneralRe: Random numbers Pin
David19876-May-11 21:41
David19876-May-11 21:41 
AnswerRe: Random numbers Pin
Orcun Iyigun6-May-11 8:37
Orcun Iyigun6-May-11 8:37 
AnswerRe: Random numbers Pin
Prasanta_Prince6-May-11 15:32
Prasanta_Prince6-May-11 15:32 
GeneralRe: Random numbers Pin
meet_ssr6-May-11 22:30
meet_ssr6-May-11 22:30 
AnswerRe: Random numbers Pin
lampiclobe7-May-11 0:49
lampiclobe7-May-11 0:49 
GeneralRe: Random numbers Pin
meet_ssr8-May-11 20:54
meet_ssr8-May-11 20:54 
AnswerRe: Random numbers Pin
lampiclobe10-May-11 11:56
lampiclobe10-May-11 11:56 
AnswerRe: Random numbers Pin
#realJSOP7-May-11 1:33
professional#realJSOP7-May-11 1:33 
RantRe: Random numbers Pin
lampiclobe7-May-11 12:26
lampiclobe7-May-11 12:26 
GeneralRe: Random numbers Pin
#realJSOP7-May-11 12:47
professional#realJSOP7-May-11 12:47 
GeneralRe: Random numbers Pin
lampiclobe7-May-11 20:45
lampiclobe7-May-11 20:45 
Questionadd and not add button "show data" in to Datagrid in C# ???? Pin
aa_zz6-May-11 0:19
aa_zz6-May-11 0:19 
hi all.
now, i have datagridview in C#. i want add fix data into Datatable and show on datagridview. But, in line 2, i set value all column blank and not add button "show data" in this row. in datagridview it alway add button in row, but i want it not add button in line i will choice.
help me, please.


private static DataTable MakeTable()
{
// Create a new DataTable titled 'Names.'
DataTable namesTable = new DataTable("Names3");

//Add three column objects to the table.
DataColumn ClassificationNumber3 = new DataColumn();
ClassificationNumber3.DataType = System.Type.GetType("System.String");
ClassificationNumber3.ColumnName = "ClassificationNumber3";
namesTable.Columns.Add(ClassificationNumber3);
}
private static DataTable GetTable()
{
DataTable dt;
dt = MakeTable();
int i = 0;
DataRow dr;
try
{
for (i = 0; i < 20; i++)
{
dr = dt.NewRow();
// Then add the new row to the collection.
if (i <= 6)
{
dr["ClassificationNumber3"] = "03J";

//DataGridViewButtonColumn btn = new DataGridViewButtonColumn();
//btn.HeaderText = "Click Data";
//btn.Text = "Click Here";
//btn.Name = "button3";
//btn.UseColumnTextForButtonValue = true;
//dataGridView3.Rows.Add(btn);
}
else if(i == 7)
{
dr["ClassificationNumber3"] = "";
}
else
{
dr["ClassificationNumber3"] = "03K";
}
dt.Rows.Add(dr);
}



thanks very much

nothing
AnswerRe: add and not add button "show data" in to Datagrid in C# ???? Pin
Ravi Sant6-May-11 1:17
Ravi Sant6-May-11 1:17 
QuestionHow to resolve the XML Error Pin
meeram3955-May-11 22:40
meeram3955-May-11 22:40 
AnswerRe: How to resolve the XML Error Pin
Pete O'Hanlon5-May-11 23:09
mvePete O'Hanlon5-May-11 23:09 
GeneralRe: How to resolve the XML Error Pin
meeram3955-May-11 23:18
meeram3955-May-11 23:18 

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.