Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
AnswerRe: Populating combobox with values from Table using C# Pin
Yusuf4-Mar-09 9:26
Yusuf4-Mar-09 9:26 
GeneralRe: Populating combobox with values from Table using C# Pin
haroon19804-Mar-09 10:54
haroon19804-Mar-09 10:54 
QuestionC# Referencing Cell on DataGrid Pin
Wheels0124-Mar-09 6:06
Wheels0124-Mar-09 6:06 
AnswerRe: C# Referencing Cell on DataGrid Pin
dan!sh 4-Mar-09 6:08
professional dan!sh 4-Mar-09 6:08 
GeneralRe: C# Referencing Cell on DataGrid Pin
Wheels0124-Mar-09 6:40
Wheels0124-Mar-09 6:40 
GeneralRe: C# Referencing Cell on DataGrid Pin
led mike4-Mar-09 7:13
led mike4-Mar-09 7:13 
GeneralRe: C# Referencing Cell on DataGrid Pin
Wheels0124-Mar-09 7:19
Wheels0124-Mar-09 7:19 
GeneralRe: C# Referencing Cell on DataGrid Pin
Samuel Cherinet4-Mar-09 19:54
Samuel Cherinet4-Mar-09 19:54 
you can use the indexer of the datagridveiw to directly find the cell you are looking for and also use the property "FormattedValue" to get the displayed text of the cell
str=dgrid[colIndex,rowIndex].FormattedValue.ToString();

I have to remind you,If you already don't know, that an empty cell means most of the time null, that is like a fuel to run time error, so be aware of that.
- try using the "RowEnter" event and access the selected row by the "DataGridViewCellEventArgs" in the event handler.

best of luck
GeneralRe: C# Referencing Cell on DataGrid Pin
Wheels0125-Mar-09 1:22
Wheels0125-Mar-09 1:22 
Questionicons in buttons with flatstyle.System Pin
mirko864-Mar-09 5:43
mirko864-Mar-09 5:43 
AnswerRe: icons in buttons with flatstyle.System Pin
Xmen Real 4-Mar-09 6:05
professional Xmen Real 4-Mar-09 6:05 
QuestionComboBox in DataGridview Pin
rafaelht31084-Mar-09 4:31
rafaelht31084-Mar-09 4:31 
AnswerRe: ComboBox in DataGridview Pin
Xmen Real 4-Mar-09 4:54
professional Xmen Real 4-Mar-09 4:54 
GeneralRe: ComboBox in DataGridview Pin
rafaelht31084-Mar-09 5:07
rafaelht31084-Mar-09 5:07 
Questionwater marking Pin
rohan40404-Mar-09 4:25
rohan40404-Mar-09 4:25 
AnswerRe: water marking Pin
Xmen Real 4-Mar-09 4:35
professional Xmen Real 4-Mar-09 4:35 
Questionwater marking Pin
rohan40404-Mar-09 4:23
rohan40404-Mar-09 4:23 
QuestionShorter form of a String Pin
shafiullah1234-Mar-09 3:51
shafiullah1234-Mar-09 3:51 
AnswerRe: Shorter form of a String Pin
Xmen Real 4-Mar-09 4:15
professional Xmen Real 4-Mar-09 4:15 
GeneralRe: Shorter form of a String Pin
Guffa4-Mar-09 16:59
Guffa4-Mar-09 16:59 
GeneralRe: Shorter form of a String Pin
Xmen Real 4-Mar-09 17:04
professional Xmen Real 4-Mar-09 17:04 
GeneralRe: Shorter form of a String Pin
Guffa4-Mar-09 17:22
Guffa4-Mar-09 17:22 
GeneralRe: Shorter form of a String Pin
Xmen Real 4-Mar-09 17:29
professional Xmen Real 4-Mar-09 17:29 
GeneralRe: Shorter form of a String Pin
Guffa6-Mar-09 1:12
Guffa6-Mar-09 1:12 
GeneralRe: Shorter form of a String Pin
Xmen Real 6-Mar-09 3:27
professional Xmen Real 6-Mar-09 3:27 

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.