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

.NET (Core and Framework)

 
GeneralRe: Attempt to bump post. Pin
Pete O'Hanlon5-Jun-09 0:34
mvePete O'Hanlon5-Jun-09 0:34 
GeneralRe: Attempt to bump post. Pin
yrishi5-Jun-09 0:38
yrishi5-Jun-09 0:38 
GeneralRe: Attempt to bump post. Pin
led mike5-Jun-09 5:03
led mike5-Jun-09 5:03 
AnswerRe: communication between device and asp.net Pin
saanj9-Jun-09 0:18
saanj9-Jun-09 0:18 
AnswerRe: communication between device and asp.net Pin
Baran M9-Jun-09 1:33
Baran M9-Jun-09 1:33 
Questionimplementing progressbar while saving data database Pin
TARAK NATH ROY4-Jun-09 20:08
TARAK NATH ROY4-Jun-09 20:08 
AnswerRe: implementing progressbar while saving data database Pin
Pete O'Hanlon4-Jun-09 22:19
mvePete O'Hanlon4-Jun-09 22:19 
QuestionStyle of a DataGridView.Row by using DataSet Pin
C-Scharbe4-Jun-09 9:22
C-Scharbe4-Jun-09 9:22 
The following code shows you how I created a DataSet and added it to the DataGridView.
To define the default column style, I added 2 columns to the DataGridView before and set their DataPropertyName.

<br />
DataSet ds = new DataSet();<br />
ds.Tables.Add();<br />
<br />
ds.Tables[0].Columns.Add("a");<br />
ds.Tables[0].Columns.Add("b");<br />
<br />
colColumn1.DataPropertyName = "a";<br />
colColumn2.DataPropertyName = "b";<br />
<br />
for (int i = 0; i < 10; i++)<br />
{<br />
    ds.Tables[0].Rows.Add("a" + i, "b" + i);<br />
}<br />
<br />
dataGridView1.DataSource = ds.Tables[0];


Now I have the problem that I can't change any style (BackColor) of the rows that will be added by setting the DataSource.
Can I define it somehow in the DataSet (DataRow) OR is there any event that will be called after the row finished adding?

[I don't want to go through each row after the DataSource is setted and set the new style]

modified on Friday, June 5, 2009 3:33 AM

AnswerRe: Style of a DataGridView.Row by using DataSet Pin
C-Scharbe4-Jun-09 22:30
C-Scharbe4-Jun-09 22:30 
AnswerRe: Style of a DataGridView.Row by using DataSet Pin
Venkatesh Ellur7-Jun-09 19:34
Venkatesh Ellur7-Jun-09 19:34 
GeneralRe: Style of a DataGridView.Row by using DataSet Pin
C-Scharbe17-Jul-09 21:26
C-Scharbe17-Jul-09 21:26 
QuestionCalling Code in Host Application From a Workflow Pin
Patrick Skelton4-Jun-09 0:09
Patrick Skelton4-Jun-09 0:09 
AnswerRe: Calling Code in Host Application From a Workflow Pin
Adriaan Davel4-Jun-09 2:01
Adriaan Davel4-Jun-09 2:01 
GeneralRe: Calling Code in Host Application From a Workflow Pin
Patrick Skelton4-Jun-09 2:13
Patrick Skelton4-Jun-09 2:13 
Questionhow to display xml data from IIS in asp.net? Pin
yrishi3-Jun-09 23:26
yrishi3-Jun-09 23:26 
AnswerRe: how to display xml data from IIS in asp.net? Pin
Manas Bhardwaj4-Jun-09 4:13
professionalManas Bhardwaj4-Jun-09 4:13 
GeneralRe: how to display xml data from IIS in asp.net? Pin
yrishi4-Jun-09 23:39
yrishi4-Jun-09 23:39 
AnswerRe: how to display xml data from IIS in asp.net? Pin
xiaowei Song4-Jun-09 15:23
xiaowei Song4-Jun-09 15:23 
AnswerRe: how to display xml data from IIS in asp.net? Pin
saanj9-Jun-09 0:22
saanj9-Jun-09 0:22 
AnswerRe: how to display xml data from IIS in asp.net? Pin
Baran M9-Jun-09 1:36
Baran M9-Jun-09 1:36 
QuestionAppDomain.CurrentDomain and static methods Pin
Adriaan Davel3-Jun-09 21:29
Adriaan Davel3-Jun-09 21:29 
GeneralRe: AppDomain.CurrentDomain and static methods Pin
Simon P Stevens3-Jun-09 22:01
Simon P Stevens3-Jun-09 22:01 
AnswerRe: AppDomain.CurrentDomain and static methods Pin
Nicholas Butler4-Jun-09 1:08
sitebuilderNicholas Butler4-Jun-09 1:08 
GeneralRe: AppDomain.CurrentDomain and static methods Pin
Adriaan Davel4-Jun-09 1:58
Adriaan Davel4-Jun-09 1:58 
GeneralRe: AppDomain.CurrentDomain and static methods Pin
Nicholas Butler4-Jun-09 2:02
sitebuilderNicholas Butler4-Jun-09 2:02 

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.