Click here to Skip to main content
15,898,588 members
Home / Discussions / C#
   

C#

 
QuestionSQL - Handling Large Volumes of Data [modified] Pin
MrEyes5-Jul-06 13:28
MrEyes5-Jul-06 13:28 
AnswerRe: SQL - Handling Large Volumes of Data Pin
Alexander Wiseman5-Jul-06 14:11
Alexander Wiseman5-Jul-06 14:11 
AnswerRe: SQL - Handling Large Volumes of Data Pin
Daniel Turini5-Jul-06 14:18
Daniel Turini5-Jul-06 14:18 
GeneralRe: SQL - Handling Large Volumes of Data Pin
MrEyes5-Jul-06 22:47
MrEyes5-Jul-06 22:47 
GeneralRe: SQL - Handling Large Volumes of Data Pin
Daniel Turini5-Jul-06 23:40
Daniel Turini5-Jul-06 23:40 
Questionhow to make faster Invalidate operation? Pin
Susuko5-Jul-06 13:26
Susuko5-Jul-06 13:26 
QuestionDynamic Crystal Reports Pin
smarttom995-Jul-06 12:57
smarttom995-Jul-06 12:57 
QuestionHow to truncate a value and display it to a grid [modified] Pin
Burn E5-Jul-06 12:25
Burn E5-Jul-06 12:25 
hello,
I've been on this problem for a while. I'm working on a windows form that has a datagrid control. lets say the user enters a value that is more that the specific length. I was able to truncate the value but my problem is I'm not sure how to put it back. Please advise. thanks!


private void TextBox_TextChanged(object sender, EventArgs e)
{
TextBox t = (TextBox) sender;
string val = t.Text;
int len=0, offset=0;
DataGridCell dgCell = this.dataGrid1.CurrentCell;
string sElementGroupID = dataGrid1[dataGrid1.CurrentCell.RowNumber, 0 ].ToString();
Al3UpdateFile objCell = new Al3UpdateFile(file_stream);
objCell.GetGroupElementValues(sElementGroupID, ref offset, ref len);
if(val.Length > len)
{
if(MessageBox.Show("Data Entered is longer than its allowed.Data will be truncated.","XDAL3Reader",MessageBoxButtons.OK,MessageBoxIcon.Information) == DialogResult.OK)
{
orignalText = val.Substring(0,len);
dataGrid1[dgCell] = orignalText;
}
}
else
{
return;
}


-- modified at 18:26 Wednesday 5th July, 2006
QuestionVirtual shared folder Pin
Bossek5-Jul-06 12:15
Bossek5-Jul-06 12:15 
QuestionHow to create a game trainer in C# ? Pin
bunnyEATINGrabbit5-Jul-06 12:01
bunnyEATINGrabbit5-Jul-06 12:01 
AnswerRe: How to create a game trainer in C# ? Pin
Dustin Metzgar5-Jul-06 12:16
Dustin Metzgar5-Jul-06 12:16 
GeneralRe: How to create a game trainer in C# ? Pin
bunnyEATINGrabbit6-Jul-06 4:09
bunnyEATINGrabbit6-Jul-06 4:09 
QuestionInheritance Question Pin
MartinSmith5-Jul-06 11:41
MartinSmith5-Jul-06 11:41 
AnswerRe: Inheritance Question Pin
Dustin Metzgar5-Jul-06 12:20
Dustin Metzgar5-Jul-06 12:20 
AnswerRe: Inheritance Question Pin
Guffa5-Jul-06 12:23
Guffa5-Jul-06 12:23 
Questionconverting a Image to a byte[] Pin
(Steven Hicks)n+15-Jul-06 11:01
(Steven Hicks)n+15-Jul-06 11:01 
AnswerRe: converting a Image to a byte[] Pin
Bluebamboo5-Jul-06 11:29
Bluebamboo5-Jul-06 11:29 
GeneralRe: converting a Image to a byte[] Pin
(Steven Hicks)n+15-Jul-06 13:36
(Steven Hicks)n+15-Jul-06 13:36 
AnswerRe: converting a Image to a byte[] Pin
Jon Sagara5-Jul-06 11:36
Jon Sagara5-Jul-06 11:36 
AnswerRe: converting a Image to a byte[] Pin
Ravi Bhavnani5-Jul-06 13:26
professionalRavi Bhavnani5-Jul-06 13:26 
AnswerRe: converting a Image to a byte[] [Solved] [modified] Pin
(Steven Hicks)n+16-Jul-06 5:18
(Steven Hicks)n+16-Jul-06 5:18 
Questionshow release version Pin
donkaiser5-Jul-06 10:39
donkaiser5-Jul-06 10:39 
AnswerRe: show release version Pin
mav.northwind6-Jul-06 5:51
mav.northwind6-Jul-06 5:51 
Questionaccessing http headers in .NET 2.0 WebBrowser Control Pin
mbenezra5-Jul-06 10:03
mbenezra5-Jul-06 10:03 
AnswerRe: accessing http headers in .NET 2.0 WebBrowser Control Pin
led mike5-Jul-06 10:27
led mike5-Jul-06 10: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.